Confused on my due date.

So im 12 weeks pregnant and i had my second doctor's appointment the other day and with my period my due date is may 30, but my ultrasound was calculated to be june 2. But they told me they are leaving it may 30. Just confused on why? Not that it really matters baby is going to come when he or she wants to. Lol