It isn't perceived that way at all. Doctors actually look at breasts and hoo-has all day long - as it tends to be their job. Your doctor is not thinking of you sexually at all. Nor is he considering that you are getting hard nipples
for him.
Some women cannot think of being touched physically without reacting, whether they react vaginally or with erect nipples depends on the woman. Also the doctor's offices can be cold. Maybe your breasts are reacting the the cooler air?
Trust me, this is natural.