I assume you are referring to Have I Been Pwned?
Basically, if a large website has been hacked, the (leaked) account details for its users often end up on the black market (for not a lot of money, I might add). Similar things have been happening with credit card numbers for a long time.
The...