Note that this does not have anything to do with his pricing of pharmaceuticals. From a different article:
"Prosecutors say Shkreli looted his drug company to pay back investors in two failed hedge funds he ran. The defense says investors got their original investments back and even made hefty profits."
In theory it had nothing to do with it, although it's not clear that the prosecution would have gone after him without that negative attention. Also, it had an effect on the juror pool.
But it seems Shkreli's transgressions are not of the "three felonies before breakfast" variety, but rather things that are indeed often prosecuted (though, it should be noted, as everyone wronged was made whole, it is likely that he would not have been prosecuted if he had not been in the media spotlight as a villain; other remarks here mentioned that the founding of Fedex had a similar fraud committed, for example).
"Prosecutors say Shkreli looted his drug company to pay back investors in two failed hedge funds he ran. The defense says investors got their original investments back and even made hefty profits."