People have answered your fundamental question clearly, multiple times, but here we go again...
Languages are grouped into families based on their shared history of word evolution (e.g. which key words have remained central, what sound changes said words have all undergone together etc.) and...