Each branch has checks over the other so one doesn’t have the capability to have too much power or freedom. For example, the president has the power to veto bills and the congress can override a veto which then, in that case it is necessary to have the supreme court determine if the law is constitutional or not.