Important for a firm to study external environment

Why is it important for a firm to study and understand the external environment?