They put him on the Beagle to have dinner with the captain so that the captain wouldn't go mad. The captain himself was the one who went looking for a dinner companion.
Also, Darwin had to pay his own way (with his father's money) as a civilian passenger and received no salary for the trip.
Think of all of the science that goes into firing and controlling a precision guided missile. How much of that technology was created for military purposes.
Seriously.
The stupider you are, the more likely it is that there is something valuable that you don't know about.
But sophistry on that level doesn't actually change the minimal economic value of putting people on Mars.