In my county my understanding is that public school teachers are de facto not allowed to give failing grades if the student turned in literally anything. Like just put your name at the top and you will get passed. Charter schools have no such rule, so that is at least one way 'undesirables' are weeded out. I'm not sure the public school policy of passing out passing grades for free is providing a better education though.