The court system is sometimes better to protect the individual because judges do not think about election or votes. They do not need to make people happy to keep their job. Judges have lifetime job, so they can focus only on the Constitution and what is fair. But elected people like Congress or the President care about politics and what voters want, so sometimes they do not protect small groups. For example, in Brown v. Board of Education, many politicians did not want to support civil rights, but the Supreme Court still said that school segregation is not constitutional. This shows the court can protect people even when elected leaders do not.
Some people say the federal courts are anti-democratic because judges are not elected. The people do not vote for them. The president chooses the judges and the Senate approves them. So it looks less democratic. But this system has a reason. In Federalist 10, Madison said that elected leaders can be influenced by big groups, public pressure, and what is popular. If judges needed to win elections, they may make decisions just to make voters happy. But because judges are appointed for life, they can be independent and protect the rights of small groups, even when the majority disagrees. So even if the courts are not fully democratic, they help protect fairness in the government.