This lists the "maximum age limit to which free education must be offered" which may not be the same as the "maximum age limit to which free education can be offered"
It's possible at age 22 the state is not required to provide him an education, but chooses to do so anyways
State by state data: https://nces.ed.gov/programs/statereform/tab5_1.asp
Texas allows up to age 26...heh.