The cars behind you stayed in the pitlane afterward, therefore your lapcount is higher than theirs, meaning you keep P5. Chin up mate