What is competitor analysis and how is it used?

What is competitor analysis and how is it used? (100 words)