Understanding consumer behavior

Why is understanding consumer behavior so important for companies? Think of examples where you do not think companies understood their consumers.