What is school for?

So far we have seen the traditional educational system (not teachers) are killing dreams which is a big deal since that’s how we shape our society, espcially in this moment when we want and need to transition to a new economy, we need people dream and make them a reality. Let’s come back to the central question again: what is school for? We have school so people can learn but shoud it be a factory for learning or an ecosystem for learning? A mechanic or organic model? What do you think?