A public good has two main characteristics: non-excluding and non-rival. These features make it difficult for producers and consumers to sell.
Education is not purely a public good, because some people can pay for a better education, and had privileges.
It is a right and a duty for the government to provide education for children and adolescents.