Homework and spanking are both things that exist for reasons other than efficacy. They're cultural shibboleths seen as separating out the moral from the immoral.
Most students will never really learn anything math related beyond basic arithmetic - they'll just about fake it for the exams, then promptly forget it. The actual numeracy skills of the general population (even college graduates (even STEM graduates)) is so woefully inadequate that it'd be entirely reasonable to argue that we should just stop bothering with mandatory math education after 8th grade.
IMO the fundamental problem with education is the assumption that it works. The handful of RCTs we have suggest that it's mostly placebo.