Some students do learn better in the classroom, but online learning introduces accessibility and flexibility to established learning models. 
The pandemic has opened up the world of online learning systems which has made higher education more accessible for many students. International students can access foreign universities without the hassle of traveling, allowing for a greater network of educational exchanges. And students who are unable to ordinarily attend traditional universities because of physical distance, mental and physical health reasons, or financial instability will now have the opportunity to access to content that they never used to.
Online learning is much more flexible than traditional in-person sessions. Online courses can be fit around their existing schedules because they are not fixed in time, rather they're accessible at all hours of the day. This is especially relevant for students who work, have children, or live in a different time zone to their university.
The traditional model of higher education has been relatively inaccessible to certain pockets of the population who have had to forgo higher education due to health concerns, social and socioeconomic issues, and a host of other obstacles in life. Online learning bridges this gap and delivers higher education to those who have previously been left out of the higher education framework.