The article mentions selling ibuprofen, not prescribing it, so it's even worse.
My dad practiced dentistry for ages, and would write prescriptions for ibuprofen. It's about the dose, frequency, and duration. You can of course buy the pills without a prescription.