As with everything, there's a balance. I've had teachers who can make interesting content boring and ones who can make boring content interesting, even if they have to make themselves interesting in the process.
Just like you can only make your lecture so interesting, a parent can only punish their child so much until the child has nothing to lose anymore or their choice becomes boredom with effort VS boredom.
Both sides should do their part for best results.
Sure, there's truth in that, but I've not seen a lot of evidence that teachers are the problem. Especially at a macro scale. For decades, they shoulder all the blame. We need to have a large level set / reality check on the parenting side of the equation. It's a cultural phenomenon that largely, in the US anyways, we don't care about education the way we say we do. We just want to buy it and check a box.
This time of year there's always a wave of videos that hit the internet that are basically outraged parents that their kids are not passing the year or graduating. The fact they are surprised by this at the end of the school year is usually not a lack of effort on the school's part and I feel this is a good indication of how aware/engaged many parents are.