This is likely fine for the typical "Digital Transformation" projects at huge enterprises that have a ton of cash to spend on things like this.
Everything is a Mainframe or SAP installation under the hood somewhere, but layers and layers of API mean that product teams can mostly ignore the complexity and ship a mediocre app that is only really a frontend.
You don't. You write your backend code and vercel (and others) turn it into serverless functions that can be deployed on AWS or Cloudflare. Or whoever else decides to offer serverless functions. Or you extract your backend and host it yourself. You're not vendor locking yourself.