There are, I believe, a non-negligible number of companies who will write software for you, to a specification, and grant you a (sometimes non-exclusive) license to use that software but absolutely will not give you the copyright. Pretty sure there's a lot of IT companies, for example, that UKGOV contract to which do this.