That being said…
Leia is spending significant time to make a detour with vital intelligence, something that makes little sense if she knows she is being followed.
Leia’s cover story concerns a ‘diplomatic mission to Alderaan’ which does not explain this detour to Tatooine, implying that she was completely unprepared for this encounter and contradicts the state of play at the end of RO.
I believe the canon explanation is that the Tantive’s hyperdrive was damaged (why they were docked to begin with), which forced them to drop out of hyperspace and for Leia to give the plans to Obi-wan, and also what allowed the Imperials to track them.