In my 20s, I was very much like this. When I was struggling with burnout, an older colleague told me that when he leaves the building, he shuts work off entirely and enjoys unrelated things. At the time, hearing this frustrated me because I couldn't even begin to fathom which muscle one would flex in order to "shut off" thinking about work.
But now I'm the age that he was back then, and I find I can compartmentalize or turn off work thinking easily. I'm not suggesting it's a factor of age, exactly, but perhaps some other change that occurs over time? Not really sure, but something in my head definitely changed.