Higher penalties are the most trivial and usual way if society wants to fight against something. There are two aims:
High penalties have a lot of bad side effects:
In the current world, even in liberal countries the penalties for consensual pedosexual relations are very high.