When the rover speaks directly to Earth (from the surface of Mars), it sends messages via its high-gain antenna (HGA). The high-gain antenna can send a "beam" of information in a specific direction and it is steerable, so the antenna can move to point itself directly to any antenna on Earth.