Male bees basically have nowhere to go at night. Sometimes they sleep in/on flowers and sometimes squat elsewhere..
This carpenter bee slept all night with just his head in a condo hole.
Once morning came, he flow off (with a nudge) and there was another bee inside!