Some people do it for resume points.
Personally, I open-source my random crap because it’s possible that someone else had a similar problem and would appreciate a pre-made solution. I have been on the receiving end of that many times, and paying it forward is the least I can do.
If I recall correctly, the “next gen update” for The Witcher 3 was UE5.