Because the ultrasound has to be vaginal in the earlier stages of pregnancy. It is also medically unnecessary, not wanted by the patient, and as someone who has had a vaginal ultrasound, sometimes it really fucking hurts. That's what makes it invasive.