I bet the person who invented the wheel did it whilst idling one sunny day.
Most likely several people tried to create the wheel and ideas on what to do with a circular shape were thought of, some cross pollination from physics resulted in it being used for transportation.
So I’d argue it was not done on a sunny day but mostly as an obsession just like most every other game changing idea
Now to make an actual wheel, with spokes and mostly 'hollow' inside and to put it on an axle - would have required better tools, so the wheel was probably created/invented quite naturally alongside the advances in metallurgy.