The setting is important because it allows the writer to transport the reader to a new location. Without information about the social customs, time, year, place, etc., it's going to be hard for readers to get connected to the story.