What is the purpose of a thesis?

Smart people come up with them and they check if their answers are right compared to the scientfic answer. <--"Not exactly." It helps a reader understand a purpose of a written/typed paper.