Prescriptions are written all the time for medications that are also available OTC, usually so that you can get a different amount than what's available OTC, or so insurance can cover the cost, or even just to make it easier to keep track of.