If you give me $1m and I promise you to pay you 3% annually over the next 30 years that might sound a good deal if inflation is 0% over the ENTIRE time frame.
If inflation goes to 5% somewhere in the 30 years you're getting the short end of the stick as you only earn 3%, i.e. in real terms...