Sometimes, sunset can be viewed as "romantic". If the author wants to build a relationship the sunset is used as a pathetic fallacy (when the weather matches the mood). The sunset refers to love which will overall build their relationship.
Well it relates because they are trying to find something to help them through the hard times that is happening. when the thief comes in it caused tension.