Actually, at some point in the books they talk about this, and somebody comments how Muggles seldom would actually catch a real witch or wizard. And if they did, the witch or wizard would cast a spell to shield themselves from the fire and pretend to be in pain.