Because this is apparently how economists and finance people think.
The 5% is called a 'nominal' *annual* rate. Dividing it by the number of compounding periods gives you an 'effective' *period* rate. Applying an exponential formula to it will give you the 'effective' *annual* rate.
That 5% quoted to you is actually a "fake" rate, meant to lull you into a false sense of security. The 2.5% every 6 months is a real thing, and it's simple to work out the actual compound interest you'll be paying at the end of the year. When you do the calculation, you'll find it's actually a little higher than 5%. That's basically how they pull the wool over your eyes when you take a loan without realising how much you'll actually end up owing. Of course, it works in your favour if you're actually investing and those are returns rather than a debt you're repaying.
You can look all this up easily on the web. It's just a matter of getting used to the (dumb) terminology.