Quiz: Remember the definition of mal de mer?
1520s, "to offer to indiscriminate sexual intercourse (usually in exchange for money)," from Latin prostitutus, past participle of prostituere "to expose to prostitution, expose publicly," from pro- "before" (see pro-) + statuere "cause to stand, establish," from PIE root *sta- "to stand," with derivatives meaning "place or thing that is standing" (see stet). Related: Prostituted; prostituting.
The notion of "sex for hire" is not inherent in the etymology, which rather suggests one "exposed to lust" or sex "indiscriminately offered." However, this is now almost the official European term for the institution, e.g. German prostituierte, Russian prostitutka, etc. Figurative sense (of abilities, etc.) is from 1570s. Of men, in reference to homosexual acts, from 1886 (in form prostitution); phrase male prostitute attested by 1948.
"harlot, woman who offers her body indiscriminately" (usually for money)," 1610s, from Latin prostituta "prostitute," fem. of prostitutus, past participle of prostituere (see prostitute (v.)).