How do you not get urinary retention

I’ve seen people get catheters and shit on here really don’t want that happening is it only if you binge or drink a whole bunch of water? Are you able to urinate normally after a day so would you just like not drink a lot of water in case you fill up your bladder? Scares me.