Attention is important in deep learning as it improves the model's ability to capture complex patterns in the input sequence and has been key to the success of models like Transformers in various NLP tasks.