The need for wisdom teeth dates back centuries ago. The early humans ate raw and rough food items that demanded a broader jaw. The wisdom teeth are the third molars that helped humans to chew and eat such foods. The large jaw that was common in our ancestors easily accommodated the wisdom teeth. Hence, it allowed them to erupt into the mouth normally.
Evolution, as well as a boost in technological advancement, reduced the need for wisdom teeth. Today, modern humans do not need the third molars. We eat soft, cooked, boiled, or baked food that does not require a broad jaw. Today, all of that food preparation has made eating a pretty easy feat to accomplish.
Unfortunately, the complete erasure of this gene would still take centuries. Many people suffer from issues caused by the coming up of wisdom teeth.
Since the mouth only has space for about 28 teeth, the third molar struggles to find space for itself, which results in overcrowding, bone and nerve damage, infection, etc. When wisdom teeth erupt unusually, it disturbs the neighboring teeth and causes pain. And some of them become "impacted" and do not fully show up.
Your third molars typically erupt between 17 and 21 years old. Hence, they are the last set of teeth to appear in the mouth. As they erupt at a later age, they are commonly known as "wisdom" teeth. The nickname develops from the belief that "with age comes wisdom."
Wisdom teeth do not necessarily appear with a problem. However, it is precautionary to visit a dentist regularly. Impacted teeth might cause pain and further issues in the future. Hence, even if your wisdom teeth are not causing a problem today, their extraction helps prevent future issues.