Timeline activity accuracy

Trying to understand how activity time is recorded. As shown in the screenshot, the app activity only amounts to about 5 minutes, but the total time that would get recorded as an entry is 12 minutes. How is this accurate for time recording? Am I missing something?