The United States has just about completed its withdrawal from Afghanistan. The 20 year war is over. Instead of the Afghan government fighting the Taliban for another two years, a year, or even a measly six months the Afghan government and military collapsed in a matter of days.
Afghan President Ashraf Ghani evidently decided that instead of taking a last stand with some death or glory hardcases who would ensure that their names lived forever as sources of fear to the Taliban, it was better to do like every other Taliban Afghan opponent and run away. Yes brave President Ghani ran away.
The President showed up in the United Arab Emirates, alternately saying that he left for the good of the people and because he didn't want to get hanged. The President also denied that he had left with a bunch of cash (most likely because he had already transferred his wealth out of the nation). Other Afghan leaders who had worked with Ghani basically called him a punk. So it goes.
Smart collaborators (and that is what Ghani was) tend not to stick around once the occupying force packs up and leaves.