I believe that if there is any purpose to education, it should be to lay a proper foundation for the person you want to become. There’s no guarantee that there is a purpose to anything in life, but if there is one, there is probably two. Two purposes to anything in life; in this case, education. One purpose would be your purpose, whatever that may be. You want to achieve something by educating yourself. To generalize, the first purpose is internal. Something we don’t often think about fully is the second purpose: this purpose would be external, or what society wants from your education. If it served no purpose for society, education would not exist.
Or be outlawed. Oh wait, it is outlawed in some countries.