Productivity in what sense? Education is literally a long term investment. As you stated, a local school district which may mean Pre-K through 12th grade (in the US) means that the children won’t be participating “productively” in the economy for potentially decades.
I cannot even fathom how hard the economy would crash if large swaths of the workforce were illiterate.