Ariane Espace isn't the ESA. The ESA put money into the Ariane program, it's not the same. Ariane Espace is a French commercial company with many links to ESA, but its primary mission is to ensure France's civil and military access to space. This has been extended to other European countries, but France holds more than 60% of the shares, the launch site, the transport and assembly infrastructure, and is responsible for the defence of the site, etc.
https://en.wikipedia.org/wiki/Arianespace
The French government wanted a reliable way of sending heavy observation satellites into geostationary orbit. This explains many of Ariane's design choices. Civil and commercial activity are just extra or bonus way of cutting costs.
For example, one of Ariane lesser-known activities is to produce ballistic missiles for the French strike force.
https://en.wikipedia.org/wiki/M51_(missile)