If a customer makes a purchase as a guest, their email address is still associated with that purchase.
If a customer then creates an account with the same email address, they’ll be asked to verify their account via email, so that past purchases may be associated with their new account.