On top of that the sails will degrade with time and the ship will need to be repaired and there is allot more crew and manpower needed per unit of cargo.
Everything has environmental cost in CO2 emissions, and the amount of useful work you get from a large container ship per amount CO2 emissions is insane. The only thing that can get you those kinds of numbers is scale.