What would cause an ear infection in newborn :(

My 7 week old baby has an ear infection and the doctor said it was very uncommon for babies this age to get one. He wouldn’t say much else but is testing her blood for white blood cell count. Can anyone provide insight on what he’s looking for or what may have caused this :( she’s on antibiotics for 10 days