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
In dialogue, speech tags are used to clarify for the reader who is speaking. It helps the reader to get the idea of everything else reader would be confused who is speaking.