Jailers are not very professional, and are allowed to treat you like livestock.
Teachers are professionals who are generally trying to help you become a better person (even if a few degenerate in Stanford Prison Experiment style guards, and they are the ones some people really remember).
If you drop out of school, you simply don't get a degree. If you jump bail, you get more jail time. And you're reaching to consider house arrest the same as home schooling. As for prison education, that's commonly available, but far from the purpose of prison. And boarding schools are private, there is only one public boarding school in the US, and it only has 80 students.
So your analogies don't exactly work. I would suggest reading the work of John Taylor Gatto, A.S. Neil, Francisco Ferrer, and Paulo Freire, though, if you're interested in critiques of education systems and their alternatives.