Until the late 1800s what was the purpose of a secondary education in the United States?

To prepare students for college
To prepare students for the workforce
To teach students better social skills
To teach students a variety of subjects