Why Unpleasantness?

Unpleasantness has been put into this world for man to learn the right lessons from it.