Why does macOS ship with Apache ?
They removed the UI to enable it in Mountain Lion, but the functionality is still built in and can be enabled if you install Apple's MacOS Server app from the app store. Or you can just enable it from the command line.
This is more about ISPs where you live than anything else. Most people don't want the hassle.
Also, the server variants ran most services (calendars, etc.) behind it.
Edit: premature posting.