Because the only way to find out is to give them the vaccine, it's impossible to know otherwise.
Also, it's important to remember that the reaction suffered was not anaphylaxis in either case, so It was far less serious that many reactions can be (for example, the last time I took ibuprofen I stopped breathing completely)