This take is so unimaginably stupid and far from the truth it makes me angry. You have network effects, liability, maintenance, mental/managerial complexity, integrations and on and on the list goes. I would be weary of anyone proposing an issue and selling you the solution right with it.
You can also cook your own food. But do you? Do you break your own bread? Do you make your own pasta? No you don't. You pay for an outcome. SaaS is the same. Just because you can do it yourself doesn't mean you should. The code is the smallest part of a SaaS. This will be the same thing like "let's move devs to a cheaper country". Look how that turned out.