The practice of sending children to other families or to schools so that they could learn together is of very long standing, recorded in classical literature and in UK records going back over a thousand years.
In Europe a practice developed by early mediaeval times of sending boys to be taught by literate clergymen, either in monasteries or as pages in great households. Courtesy of Wikipedia The oldest recorded boarding school was The Kings School, Canterbury dating back in 597 AD.
The following valuable resource was found at: Boardingschoolreview.com, it states the reasons quite well.
Attention to students – boarding schools generally have small class sizes that help teachers engage every student in the classroom. Classroom settings are often specifically designed to encourage student participation and eye contact among everyone in class.
Quality of faculty – the majority of boarding school faculty have advanced degrees in either education or another specialty.
Quality of resources – student resources at boarding schools – such as the library, theater facilities, or athletic complexes – can often be superior relative to local options.
College counseling – college counseling departments at boarding schools are generally well-staffed and taken quite seriously. Counselors often have plenty of experience in helping applicants identify appropriate schools and advising them on getting-in at competitive institutions.
Private Boarding Schools nowadays offer more variety, more challenging
academics and more one on one help for students wishing to get into well known colleges.