There are several factors:
What the airline is willing to pay for (airbridge is more expensive in most airports)
Timing of arrivals and stand availability at that time
Airline preferences
Suitability of the stand for the type of aircraft
Scheduled turn time (shorter turns will be more likely to have a bridge due to time spent getting resources out to a coached stand)
etc
Probably many others too