Particularly at the testing thresholds we are using in the US, where as little as a single copy of the virus RNA can be detected, a great number of people test positive for weeks after their immune system has defeated the virus.
T-cells are not like antibodies, which is the immunity you are thinking of.