Why did i throw up off cough drops and hot tea?

I have sinuses and i drunk some hot tea and ate some cough drops to help my sore throat. Some minutes later i threw up. Why is this?