Honestly that's what anyone employed to a company should care about. Your aim should be delivering value, which sometimes means making long term investments that improve the development environment.
You also should spend a portion time learning as it enables you to create more value over time.
And yes you should take time to get to know your colleagues, take breaks, play ping pong, etc. This helps you refresh yourself and avoid running out of steam.
But the work is meant to create value, hence why you are rewarding with currency you can exchange for things you value.
Manage a positive work life balance and and do the "fun" stuff outside of work. Life is not all work and work is not all of life.