Sure, a lot of technology has proven socially useful, but usually with regulation (of natural monopolies, for example) and subsidies and such. It's not an either or situation. Companies can and do profit alongside mandatory social contributions that they otherwise would not have done if it meant more profit.
In the electronics space, things like safety regulations, charging standards, warranty protections, etc. have hurt profits but been good for the consumer. There's a balance.