In Leviticus 24:11-23 we have a case inserted within a legal dialogue. The Son of an Israelite profaned God's Name and they didn't know what's to do with him. So God gave a ruling through Moses that the man should be stoned to death.
Why was the death penalty prescribed for this case?