Because one of the key parts of UK law is the principle of parliamentary sovereignty - that parliament is the ultimate source of legal authority. The court cannot overrule parliament by definition, in the same way SCOTUS cannot overrule the Constitution.