Setting can change the mood of a character. Lets say a character does not like where they are in a story. They are going to be upset. If they are somewhere that they like they will be happy. It develops the theme by making the character happier and the theme might become more exciting!