I found a great graphic on testing
Lateral Flow test is the Antigen test
See how the Antigen Test is very good at showing if you are infectious. But it lags slightly on both ends.
The PCR you can tell you're infected sooner, but it keeps showing positive for a while afterwards.