Fucking Land Lord BS

If you knew you were moving out why didnt you tell him to keep the deposit as last months rent??