Because he is speaking as a head-of-state. Vatican City is a nation and he is the head of that nation.
Doesn’t give him a right to tell us how to run our country. We are under thr authority of the COTUS, not the pope.