Two Apple ids and just want one
I'm assuming when you say "both Apple IDs", that you mean an Apple ID using your Gmail account, and an Apple ID using your Hotmail account. 

It asked you for passwords to both of those Apple IDs because you have purchases or free items licensed under both IDs.