A car camera, also called a dashcam, can protect you in the event of an accident. Having footage can show insurance companies and legal representatives what actually happened, and they can protect you from liability if you aren't at fault.
Plus, if you're a cab driver or rideshare driver, a camera can protect you from liability if you have a dangerous or malicious passenger. And if the passenger makes a claim against you, it can also show what really happened.