That... is most probably true.
It could easily be as simple as what's already been stated: He cheated or finagled to get the pills he wanted. He sold none but kept a significantly sized backlog. When caught he acted so proud that the prosecutor and later the jury and judge swore to make an example out of him, and damn being humane about it.