Realism in literature also refers the same realism as that of art. In arts, realism is something or an attempt that you represent art into subject matter truthfully, without any artistic conventions. It is also the same thing as in literature. You do not need to add flowery words in order to present an idea.