Actually, that's not true. Square rigged "pirate-style" ships are more efficient when sailing downwind compared to fore-and-aft style sailboats, but they can still sail just fine close-hauled (into the wind) or on a reach (perpendicular). There are some efficiency pros and cons to both styles, but they all have the same aerodynamic capabilities.
The main reasons square-rigged ships fell out of fashion, as far as I know, are mostly logistically. Square-rigged sails make sense when you have a really big ship. A single huge fore-and-aft sail would be too hard to handle. Square-rigged ships break that sail area down into a larger number of smaller individually manageable pieces.
But larger vessels are almost all powered now. For a smaller sailing vessel, it's easier to manage the simpler Bermuda sail plan, and its more efficient. I think maybe square-rigged ships have an efficiency advantage when going straight downwind, but most sailboats simply carry a spinnaker to cover that case.
(Caveat: I'm not a sailor, I've just read some textbooks.)