Pew Research Center data found roughly a quarter of the world's countries still had blasphemy laws in effect as of their most recent global survey, and legal scholars note in several documented cases these laws have been used less to protect genuine religious sentiment and more as tools to prosecute religious minorities or silence political dissent under a religious pretext.
Feels like some things are just genuinely sacred to people, so having some legal protection against openly mocking that doesn't seem totally unreasonable.