Capitalism is not immoral, but it is amoral. It gets its instructions from us. It’s an indiscriminate engine, and our obligation is to see that it provides forward movement to everyone, not just to those whose hands are on the levers of the machine.
I think people get falsely infatuated with tax designation, as if being a charity or a for profit makes something more or less noble.
Instead of caring about whether something is for-profit or not-for-profit, perhaps we should care more about what they are doing with the resources and influences they have?