Hello Tiffany ,
Why ? It could be partly a classification of feminine ,masculine and neutral objects and persons ,
such as ( der Mann , die Frau ) , ( der Sohn , die Tochter ) ( das Buch , das Kind) but it is not always a rule for some words dont really follow that rule ,so you have to learn them as they are in many cases without a particular reason .