The popup you got stated that there was already an account connected to your Game Center account.
You had the option to use your main, or your alt, the popup also stated that if you choose the latter your main would be deleted, and so has it.
Just don't connect 2 account to any of the same account on a game service, that literally never works and always deletes one of them.