I'm glad your kitty is feeling better. He may have had a small wad of hair stuck somewhere in his pharynx causing irritation, which was flushed out with the vomiting. Cats can get viral upper respiratory infections causing what we would call a sore throat, but if he is otherwise healthy, properly vaccinated and not in contact with other cats it's not very likely to occur.
Holistic Wellness Care