Why do they wait until the last moment?

I don’t understand why the gate agents wait until the very last moment to process the upgrade list(sometimes). The only real issue it creates is then hoping they have room in the first class cabin overhead or you need to leave your bag 20 rows back.