The story
Compound of man + month, although, as with any such unit of measure (e.g., pack-years, newton metres), the mathematical relationship of multiplication is simultaneously involved: X men working during Y months = X × Y = Z man-months.
Etymology from Wiktionary, CC BY-SA 4.0.