He's not that smart. Prescription medicines usually have some identifying numbers or letters on them whereas over the counter stuff is more like to have a brand name.
Just another crap storyline from the book of Ridiculous Stories for Useless Characters Whom Corrie have signed a lengthy contract with.