Pete did that to himself. There is no betting in baseball.
He wasn’t a player when he did that, he was a coach. It had absolutely nothing whatsoever to do with his unmatched playing career.
Excluding his player accomplishments based on his actions as a coach are precisely what makes the HoF laugh-worthy, or cringe-worthy, rather than respectable.