Well I suppose you could have been exposed to lots of VOCs and polishing dust, neither of which would be beneficial to your lungs. I don't think it's a big deal, and I think after a couple days you should be fine.
I've never had this problem myself, and I wax my car in the closed garage all the time. But I try to polish outside if possible, to avoid standing in a cloud of dust.