The main reason is that code can be copied infinitely often with zero marginal cost. For example, a logger once implemented correctly can be used by any software team. Open source code is the absolute main reason. In the near future, AI and machine learning will get their fair share for sure.