It’s a phrase that says a lot about what we think of school.
Colloquially it means “getting owned/dominated/put in your place.” It’s a phrase you might hear between competitors in a sporting event, or between siblings wrestling in the house.
Getting schooled means you lost. You tried, and you failed. Something defeated you.
Is that what people think of school? Is that what we want people to think of school?