Why Don't Browsers Let Web-Apps Write To The Local File System?

My Quora question : I mean, I know why. It’s a security thing. But why couldn’t a browser have an API for scripts to read / write the file system and a security feature where the web-app has to ask and be given permission by the user before it runs? (Just as Android apps. have …