I think part of the issue here is something I just clarified to someone else- homeschooling and online schooling are not the same. Homeschooling is where the parent acts as teacher. Online schooling is where the child works with real licensed teachers and has real graded assignments by those teachers using the same textbooks public schools use and live videoconference lessons every day.
I’m glad your friend got their kid out too. I just wish more parents could, but it usually requires some parental supervision to keep the kid on track (unless you want your kid to fail), which means one parent has to stay home and that’s not realistic for probably the vast majority of people in the U.S. My wife has a pretty good job and the cost of living here is low, so we’re able to manage it as long as we generally do without luxuries.