Perseverance sends the data to various orbiters (satellites already in orbit around Mars) during overflights (time windows when the orbiter is in range of the rover) and those orbiters then send (relay) the data to Earth via the Deep Space Network (satellite dishes on Earth).