Substitution due to injury

I recently had a game where my 12 got injured. I didn't have any 'green' players on the bench, but I did have a few red, yellow and one blue. The player subbed in was my lowest ranked 4-5 (he was also at the bottom of the list of subs).

Why wasn't my highest ranked sub used instead?