Due date different by 2 weeks?!

I see girls saying they think they are 7weeks by their LMP but get an ultrasound and are only 5 weeks? Would love to know how that happened?