I was wondering something for a project I'm considering. If I build a web app for somebody and move on, am I even doing them a favour unless I maintain it for years too?
If it's a job, then that's their problem, just like how if I pay someone for a car, I still have to get the oil changed forever.
If you're doing it for free as a favor for a non-technical friend then yes, almost certainly you will need to do at least some maintenance work in the future.