It does, but it's turned off by default. It can be activated in the System Preferences - Sharing control panel.
More importantly, Mac OS X doesn't have any unnecessary open ports or services running.
"It does, but it's turned off by default."
Oh - OK ... that makes sense ...