Not OP so I can't say what is meant by "happiness" here, but maybe if you feel your life can serve a purpose other than your own pleasure/comfort you would be willing to experience less pleasure/comfort to achieve that goal. That's different than happiness, but maybe that's what he/she was getting at.