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.
Try this. Last thing at the end of the workday, write yourself a context save. Jot three to five sentences about where you are, what's in your head. If you do it right, the next morning you can brief yourself and jump right back into it. And in-between, not need to hold it in your head, grinding away in the background.
This is very dependent on the individual. I personally prefer intense, all-consuming project-oriented work, followed by longer gaps to recover. I think what we share is some form of a state of decompression/recovery though.
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.