Hosting is renting a computer that never sleeps
Your code has to run somewhere that is always on. That used to mean a rented server you configured yourself. Today it usually means a platform like Vercel, Netlify or Cloudflare that takes your code and runs it for you.
The trade is control for convenience: the platform handles the machine, and in exchange the platform's settings become part of your security posture.