Cats' ears are very sensitive. Touching them can sometimes cause discomfort, leading to head shaking. It could also be a sign of an ear infection or parasites.