While the person working the other gig full time, while they do a lot of stuff they don’t want to do, all that stuff is in the same vein as the stuff they want to do, and practice like that has value. Maybe you’re not playing beach’s lute suites, but the playing/performing/writing/networking you’re doing has more value to that thing than being a programmer.
It’s not straightforward which one is better if you really want to take the side gig forward and advance.