Documentation does not clearly state that, in case of replication, flag --replication-restore-state-on-startup should be set on both, main and replica instances. Same goes for --data-recovery-on-startup.
https://memgraph.com/docs/clustering/replication/best-practices#restoring-replication-state-on-startup