Why it's the capital
In 969 the Fatimid rulers ordered a new fortified city to be built next to the older capital, Fustat, and in 973 Cairo became the seat of their caliphate. Over the next centuries it took over from Fustat, and later rulers kept governing Egypt from Cairo.