Pain comes into the lives of good people so that they don’t become egoistic and don’t deviate from the path of dharma, to stay in touch with humility, and remain persistent.So that we live the life of an awakened and inspired others. So that we don’t get entangled in the worldly pleasures or get too attached to anything. And lastly so that we keep on working towards the path of salvation to reach higher. So that we could rise above our pain and see beyond our eyes or bigger picture. So that we know what is best for us. So that we could progress spiritually and realise that nothing is ours and nothing permanent or temporary. Pain leads to wisdom.