The two things are related because maintenance of the empire imposes demands on the domestic political and economic structure. Look at the domestic politics during Vietnam and the GWOT.