Soft drinks get spoiled if consumed after a few months

In goa, there are many soft drinks which are available for Rs 10.
However, it is noticed that the taste of the soft drink will change if it is not consumed immediately
After a few weeks or months the taste will be different.
It would be interesting to find out why the taste is changing, is there any degradation