Imagine you want to eat but don't want to cook or clean up. You go to a food truck where you order your meal. You don't worry about the kitchen, the chef, or the ingredients--they handle everything. You just pay for the food you order, and when you're done, you leave. You don't rent the whole truck or kitchen; you just use what you need, when you need it.
This is like serverless computing. Instead of managing servers (the kitchen), you write your code (your order) and the cloud provider runs it for you only when needed. You pay only for the time your code runs, not for idle servers. The provider handles all the setup, scaling, and maintenance behind the scenes.