Because it's a good idea to separate the role of head of state from that of head of government as a bulwark against governments taking unconstitutional actions. It also gives you an apolitical chief diplomat and a respected voice outside of party politics that helps moderate discourse and to counterbalance executive power.