Yeah schools aren't perfect either, but it's very hard to replicate the teacher role online. Peers yes, but I'll eat my hat if anyone can come up with a digital platform that allows students and teachers (totally strangers) to connect and build relationships that last for years.
You might accidentally bump into a mentor, but that's extreeeemely rare. It's a nice dream though, hope it happens to me one day. But in all my time as an active participant in online courses (small sample, I know) the most personal interaction I got was someone reaching out via private messaging. This is totally within expectation though, many of us still unconsciously regard the Internet space as not really real.