When uncrewed, it can avoid the safety constraints and other problems associated with crewed ships. During typical operations, launched threats attack the ship, and the combat or weapon system being tested responds to these threats, defending the ship.
Without a crew onboard, the ship is free from the constraints of manned operation and avoids potential problems.  During normal activities, simulated threats are launched at the ship, and its defense systems respond to these attacks, protecting it.