The Primary and Secondary hosts exchange messages periodically even when there is no replication activity using the heartbeat protocol. This helps to detect host or connection failure between the Primary and Secondary.
More Information
Replicator Log protection when Primary and Secondary are disconnected