Well, this is because of taxes. On a large scale they have a reduction of 1% on total tax per product, while people rarely bother to pick up the spare change. Overall it leads to certain increase in profits.
In addition, people's minds are funny.
It's more likely somebody will find a 4.99 a better deal than 5.00 just because one starts with a lesser number.