Where did you get that kind of motivation? Sounds almost super natural.
But I motivate myself by focusing on the long-term impact for my career, and thus the benefits for myself and my family:
Coupling my expertise in software engineering with deep knowledge in an adjacent field such as ML I believe can open up new opportunities and give me the freedom to take my career along paths that weren't possible before. That is what I remind myself when I sit down to work homework problems late in the evening.