Using math as an example, you can't master it without a lot of practice, and that practice is homework. Albert Einstein wrote that he was practicing mathematics often and at length from an early age.
what about the kids who, instead of doing the homework, have to do actual minimum wage work and house chores and help raise their siblings? They probably put in a lot more work than you, but it doesn't show in their grades.