It can and they know how to implement it. There is a pretty clean distinction of where the user can input some data.
There's no notion of "unsaved" changes. There's the notion of form data that hasn't been submitted, which is entirely different. Many web apps don't use "submit" at all, ever.