It looks like an allergy medicine administration device.
Could be to control the coughing, but I’ve never heard of one in the ear. There are medication implants for the sinuses for related conditions.