What were the origins and purpose of heresy and blasphemy laws? And their sudden easing in some places later in history?

by Agent14557
Agent14557

I’m sort of also asking, was religion in anyway seen as a literal competition? What was the motivation for increasing one’s adherents?