I imagine a huge factor is also parental involvement, when it comes to encouraging students to set aside several hours each night for study and homework. In the absence of parental involvement or in cases of parental neglect and indifference (woefully common in many situations), the role of the teacher becomes far more important in encouraging the student to develop good study habits. This might be more difficult in the online situation.