Sea snakes and people are their predators, too. It's safe to eat stonefish, as long as you take the spines off very carefully!
The stonefish family was here about 400 million years before we were. Sharks and rays were around, so the stonefish needed their sting.