Your post makes sense, but most software was moving to the cloud even before AI. Why sell someone a copy of ms office when you can get them to subscribe to O365?
I think the self hosting moment will gather steam and maybe prove itself superior for certain cases