you would need to ask your doctor. i have no way of knowing his/her rationale but perhaps it was because he heard lung sounds that may be consistent with mild asthma or reactive airway disease -- a more severe form of allergies.
why would my doctor order a chest xray when testing for allergy?