What is the importance of cost accounting in a business?

What is the importance of cost accounting in a business?