They were at one point, but capitalism said everything needs to make a profit.
Free markets are great at reducing inefficiencies in a world in which no participant decides to coordinate with other participants for profit. which obviously doesn't work, just like communism doesnt work at societal scales.