Ear infections can affect people of all ages, but they are more common in children due to their developing immune systems and smaller Eustachian tubes, which can make them more susceptible.