Why do I need to test my website on different browsers?

Why do I need to test my website on different browsers is it necessary?

There are some components that may work on Chrome but not Firefox. Also, there are some CSS codes that differ in their response across browsers.