Private schools are private businesses so the government cannot dictate to them in the same way as state schools.
Based on that reasoning, the government would not be able to dictate to shops, gyms, restaurants, hotel, etc. The reason they are able to dictate, is that special legislation was enacted, the Coronavirus Act, giving the government the power to give directions to schools, shops, etc.