Why do doctors press your stomach?

Ally

I went to the doctors with a UTI and I had to lie there while they pressed my stomach. Why do they do this?