It is important for supreme court having it's own independent building to separate them from the influence of Executive and legislative branches.
By separating them, Justices will be kept away from lobbyist who influence their judgement.
hope this helps