I'm assuming you have kidney stones or a bladder blockage? Because yes, that drug was designed for men with prostate problems.
Doctors are allowed to prescribe medications "off-label," meaning that the manufacturers and the FDA (or whatever your local government's equivalent is) have not gone through the extended and expensive process of getting it formally certified as a treatment for a particular condition or group of people. An example is that Wellbutrin is approved for treating depression but is *often* given to people with bipolar. When doctors do this they are supposed to have a good reason: published research for this condition, experience with the medication, etc. They shouldn't just throw it out randomly. However just because a drug is off-label does not automatically mean it is the wrong choice for you. A lot of drugs don't go through the formal testing process for every single possible class of patients.
You are allowed to call them back and ask why they prescribed it, why they think it's the most appropriate/safe choice, and if there are alternatives that *have* been qualified for women, why you didn't get one of them.