Exactly this. Everybody was doing steroids in the 90s and early 2000s, and it wasn't really against the rules. MLB was aware everyone was on steroids, and they needed it for the ratings and popularity.
It's unfair to now bar those guys from the HOF when they carried the ratings for the sport for years.