I’ll point you to my earlier post but summarising it apostasy law isn’t merely just about believing in God but about the moral implications it presents.Would that not cause people to become munafiqs then? Whats stopping apostates from lying to save their lives?
One of the best paragraphs I have come across regarding apostasy:
"Apostasy, it must be said, is not just an act of rejecting the Muslim God, for, on its own, it is merely a summative declaration that implies and encompasses certain collective and foundational derivatives. It is indeed the moral implication of this declaration that was at the heart of the matter. Fundamentally, therefore, apostasy is the rejection of the moral instruments that fashion the moral subject. If it is one side of the coin, jihād is the other. Apostasy law intends to curb the moral damage of the Community’s inner sphere, and jihād intends to protect and, if possible, expand the limits of that sphere."