The Kushites conquered Egypt long after the Kingdom had run its course. Egypt had already been in decline for several centuries and under Libyan rule when the Kushites invaded. Soon after the Assyrians took over.
Basically Egypt was weak and ripe fro the taking.