"School" for Bill Gates was his educated home environment, the block of computer time he could use in 8th grade, the Computer Center Corporation where he worked while in high school, and his projects with Paul Allen as a teenager. It was the unstructured resources that were around him.
Not every kid is a Bill Gates. Most probably need less formal instruction because they do not need as much abstract knowledge.
Schools as they exist today should be abolished and the teachers and other staff that work in them should be taken off the public payrolls and allowed to take useful jobs in the private sector.
Schools, to the extent that they exist at all, should be more like graduate study where an advisor suggests resources for further study. These advisors could be unpaid volunteers. People with successful careers in areas of that the student is interested in who interact with the student intermittently perhaps over the internet.
The bulk of kids' time should be spent in projects or actual work, apprentice-style, in an area of their interest. Instead of being grouped together in dysfunctional groups of their own kind, young people should be distributed in the economy, working with and under the supervision of competent adults in the various fields.