Were we watching the same speech? The one where she condemns them, but states that she doesn’t have the freedom to kill someone that another might live (in this scenario, killing an alien for the sake of a crewman) and ultimately decides to turn them loose with a promise of reprisal if encountered again?
A lot of my head canon around this and the notable lack of automation prevalent in Starfleet: it’s a futuristic, post-scarcity jobs program. Yes, it’s about exploration and rendering assistance and all that. But it gives people something to do, a way to serve the whole. Picard said as much to Geordi when Scotty was aboard. I’ve of the many things Starfleet does is give people a sense of usefulness.