Was the email sent to you? If yes, did you use it to set up any account or register for any sale for the original website? If this was a targeted scam attempt, it would indicate a breach in user information, posing more security risk.
I recently received an email from HaveIBeenPwned and then a couple of hours later, I received that spam email.
I'm not sure if it's connected but it can be. Most of the exposed emails probably have received it as well. The email that was sent was dynamic so they just probably sent it to the leaked email data.