When things like pain and struggle are known for being a source of sadness, we can activity work on things to prevent pain and struggle such as focusing on health wealth and family. The absence of sadness is not happiness however with less sadness and pain there are more opportunities to encounter happiness.
However it can also be argued, without pain struggle and sadness, one might not recognize the feeling of true happiness