If a player resolves an exploration card that has an “attach” header, they attach that card to the planet card of the planet being explored.
This is the official Living Rules Reference wording under Exploration.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.