>It rarely makes sense for a company to make their own software that they only use to internally.

From my understanding China operates this way. They supposedly have such an oversupply of software engineers that every company just build all the software they need internally. Now with AI they have supposedly been super aggressive in adopting it that its probably even more of the case that everyone is building most of what they need internally.