Yes, women are much more likely to get UTI's than men. This is because the urethra in women - that's the tube that carries urine from the bladder to the outside - is much shorter, which means bacteria have an much easier path to the bladder. In fact UTI's in men are so unusual that a single instance, and certainly multiple infections, trigger further investigations because it is likely there is an underlying problem - this is most commonly prostate problems.
Older people are also more vulnerable because their immune systems are less active. Also, people with dementia may have poor toilet hygiene which makes them vulnerable.
So unfortunately, elderly women with dementia are very prone to these infections.
The best preventativ eis good hygiene and drinking lots, which helps to flush the bladder (and incidentally helps keep the kidneys healthy too). Cranberry juice may help. Cranberry extract tablets are just as good if you don't like the juice.
Some women - and a few men - may also get cystitis; this just means inflammation of the bladder. The most common caus eis bacterial infection so in women it is normally assumed ot be a UTI. There are, however, other causes.
A simple dipstick test will usually detect a UTI, even one which produces no obvious symptoms. A healthy young adult probably gets UTI's without ever knowing about them.