Why was school invented?

In pre-literate societies, education was achieved orally and through observation. The young learned informally from their parents. Skills were passed down through generations. Then as "writing" began it was seen as a very usful tool for the leaders of countries to use, especially for communication. Groups of young people learning differenet skills have been recorded back to Mayan time where young men were taught war engagement in groups. They had to attend these learning session regulally. Around 300 B.C. the Sumerians and the Egyptians (who invented cuneiform and hieroglyphic writing) started creating centers where reading and writing could be taught to larger segments of the population. After the development of the first alphabet by Semitic (Hebrew) people in Syria between 1800 and 1000 B.C., schooling became associated with religious education. Priests in this region set up schools in which they could teach the sacred Hebrew writings of the Torah (the entire body of Jewish law and learning) to privileged boys. Chinese philosopher Confucius (551-479 B.C.) opened the first truly public schools that were accessible, in theory, to anyone who wanted to learn. He taught literature, music, conduct, and ethics.