I assume you are talking about TV & Internet.
Those 2 year contracts are a discount to the price of your service (for example $30/month for 24 months); however, while the discount is guaranteed the price of your services are not.
For example, my base package cost is $125/month and is $95 after the discount; the base price of the package could increase during those 24 months.
After the 24 months, the discount drops off your account.