In the 1960s it would be hard to retrieve samples from the moon without humans. I don’t think that’s true today. For mars, isn’t it obviously much more difficult to try to get a big enough rocket to return a load of heavy meatbags than to just return the rocks and leave the robots behind?