Core component of SQL Server for storing, processing, and securing data
There are a lot of reasons this could be, but you will find the first clue in your Errorlogs. If you see disconnections regarding replicas, then you can have this happen. Check your Synchronization modes of your AG (Right Click on the Availability Group in SSMS and choose Properties and look at the Synchronization mode (Asynchronous or Synchronous).
Another way to see is to right click on the Availability Group and choose Show Dashboard and see what the warnings are by seeing the Yellow ! and clicking on the link to see why it is not in sync.
Another cause could be that something happened to the replica and it was offline or disconnected and log backups happened, so you would need to restore the logs to the secondary to catch it up to the primary.
But the Dashboard and errorlogs should be a good help to find out what the deal is.