Irony in a literary work helps engage the reader by creating a disconnect between expectations and reality, which often makes the narrative more compelling and thought-provoking. Therefore, the closest answer to the role of irony would be:
It creates a disconnect in the reader between what is happening in the story and what occurs in daily life.