Dialogue is important because when you have dialogue it shows the character's personality, emotions, and actions. The reason why authors use dialogue in their pieces of texts is to help the reader to get to know the character while also revealing the character's emotions and actions.
Hope this helps!