when rebel units spawn they are given upgrades automatically. Thats how that happened.

Foot