In dialogue, speech tags are used to

clarify for the reader who is speaking
clarify for the reader who is doing the action
clarify the plot of the story
clarify the main theme of the story