I reckon you just got lucky, there are only a limited number of codes. When Ford introduced their new keys, I managed to get into the wrong car in the supermarket car park, the owner was not amused. Curiously, my key worked in his car, but his would not work in mine.