The snake charmer insures his safety by sitting out of biting range. He keeps his animal sluggish and reluctant to attack. When the charmer is really afraid, he will remove the snakes fangs, venom gland or even sew the snake's mouth shut.
The snake charmer earns a living by making this poor animal dance. The snake has no ability to improve the situation in which it lives. Human beings are not snakes.