Gender determination

Ka

I just had my anatomy scan and the technician made me cough when looking at my baby to see if it is a boy or girl, does anyone know why they do that or if they do that to everyone?

P.s. I didn’t want to know the gender so I didn’t see if it was a boy or girl which is why I’m wondering