Possession of a prescription only drug without a prescription is only an offence if the drug is also controlled under the Misuse of Drugs Act 1971 and possession is thus specified as an offence.
It's unlawful to possess a prescription-only drug without a prescription unless it's also listed as a controlled substance under the Misuse of Drugs Act 1971, in which case possession becomes illegal.