Our grandchildren have a muslim father and christian mother. It was decided at birth that they would not push the children to either of those religions but allow them to make their own mind up when they were old enough.
To execute someone for wanting to change seems a bit barbaric but as you say it only appears to work one way. I cannot imagine many (if any) countries following that lead.