if you think your purpose in life is to study Gemara, then it can be frustrating to have to work 9 hours a day. if you see your purpose as serving Hashem, part of which includes learning Gemara, then work can feel like it has its own purpose, other than getting money.