The companies were driven less by idealism than by intense competition, and a bet that they could create more environmentally friendly alternatives