It is not entirely accurate to say humans have smaller ears than all other mammals. Our ears are relatively small compared to body size but larger than many mammals like rodents.
Ear size relates to sound detection and needed frequencies. Smaller ears help with sound localization. Humans are optimized for speech frequencies. Evolutionarily, smaller ears were sufficient as ancestors relied more on visual cues.