Hi,
It's a strange situation but can be explained when you apply for PGWP.
In order to apply for PGWP, you should have a valid Study Permit (not expired on the date of PGWP Application). In your case, it expired before your studies finished, but you applied for extension before expiry date...