IG-11 is going to come in guns blazing. I assume they programmed it to protect baby Yoda before setting off on their mission. After the ending, I was thinking that it was stupid of the scout troopers to not check the ship before speeding back. But, scout troopers have never been too bright.