Clean catch

What is The clean catch urine for? I went to the doctor the other day and I had to so a clean catch and I told my doctor I do r have to pee so I ended up cleaning myself with 3 wipes and I need in the cup and I didn't pre in the toilet first can this affect my result?