If it was a late notice equipment change it may just have been that there wasn't the time to go through the usual steps and BA put the priority on getting the flight out in time, upgrading a random person.
Or maybe your friend showed a very flashing smile to the right member of staff at the right time.