The price of helmets is determined like the price of anything in a free-market economy : what the consumer will pay. Probably in this case compared to the cost of a bike (20% of the cost of the cheapest new bike).
When helmets became compulsory in Australia, the price halved to $20, and has stayed there ever since !