Why do certain dogs have long ears?

certain dogs have long ears due to being in the hunting category or hound blood line. when a dog smells or tracks the ears act as a sweeping motion to help stir the sent