Astronomers got tired of watching the moon rotate around the earth for 24 hours, so they just called it a "day".
Astronomers Define Day
Categories
Explanation
Experiment
The joke plays on the idea that the length of a day is an arbitrary convention. It's funny because it implies astronomers just got bored and decided to define "day" rather than actually observe the moon's rotation.