Universally speaking, all human beings are occasionally expected to be exposed to unthinkable difficulties and miseries as a holy gift given to be individually trained here on earth.
Fundamentally speaking, difficulties and miseries are absolutely necessary for all human beings to be mentally trained.
It goes without saying that people learn "how to live well" by experience. Experience guides you to fruitfully improve your ability more than you simply imagine. Above all things, pain is the the one which you truly neeed to be mentally trained.
Obviously, you learn and know "how to live better" by pains.