This is less surprising if you imagine evolution to be a reinforcement machine learning system. The dung beetle actors are given all the sensory inputs of their environment. Those that used the inputs (which happened to be our galaxy) where better at satisfying goal and thus had higher selection rate for next iteration of system. The actors, much like machine leaning, AI, don't have any logic nor any reasoning. They simply are a ludicrously complex, but deterministic state machine of inputs -> mess -> outputs. The mess being seeming unintelligible, not rational, with lots of "cruft".