If private individuals are allowed to provide basic education, the price of education will definitely be high, so many people will not be able to go to school. If these people can't go to school, these external interests won't exist.
Education has positive externalities, and the private benefits of private education are lower than the social benefits provided by the government. Learn some knowledge of welfare economics to understand.