Windows lost the taskbar in Win 7, OS X has never had one.
In my experience a dock is preferable when you have a small number of windows open for each application and a taskbar is preferable with a larger number. Perhaps tabbed applications have made this switch possible.
What reason except to save real estate could there be? Who does not want to be able to see which windows he has currently open?