It it based on many factors , the committee is swayed by many things, where have previous events been held ? (they try to avoid having it on the same continent two events in a row) how realistic is it to get all the facilities in place ? sometimes a country will win not because they are great at getting things done, but they are the best at those who are vying for the event , the committee is also swayed by what the potential host country plans to do with the facilities after the event , political stability is also considered , finally they look at these and other critieria and compare all the host cities and see who has the best over bribe, err, I mean bid.