Here's why:
* Dernier is the masculine form of the adjective "last".
* Dernière is the feminine form of the adjective "last".
For example:
* La dernière fois (The last time)
* La dernière page (The last page)
* La dernière chance (The last chance)