Well, that depends on your shareholders.
Mozilla Corp can do this, because its only shareholder is Mozilla Foundation.
However, the minute you take institutional investment, hand out shares to employees, take on debt financing, etc., you are now bound by a fiduciary duty to do right by those other parties. You still can focus on other things, but only if they don't conflict with turning a profit.
In my opinion, "turning a profit" in fact serves the greater needs of the npm/node community, because servers cost money. npm isn't just a program, it's a service, and services require infrastructure. So, it's not a conflict at all.
It is a very foolish business person who sees an exponential curve of user engagement, and decides that the best way to make money is to screw all those people.