Gynocologist?

But of a stupid question, but I was wondering what they do when you go to see them and what the check for? Also, how different is it from going to get checked by just peeing in a cup?