Side projects are fun.
Sometimes I notice a pattern. Time wasted doing the same thing multiple times. Maybe there's a product that does this for me. Sometimes there isn't, or it isn't good enough. Then I put aside some weekends and get to it.
I also play around in Codepen, trying to reach the limits of CSS, building optical ilussions and 3D experiments.