If there's a market for it in a few companies. There's probably a world market for it
Why wouldn't a private equity just buy all the software companies in that area, and create one large company that serves the world.
They do.
And that's why small software companies aren't really a thing.
Except very many companies (even smallish ones) hire consultants to write them custom software because standard stuff like SAP sucks and is expensive.
And now you can actually build _good_ custom software for relatively cheap.
Small software companies absolutely are a thing though.