Sentence1: Sandy was homeless. Sentence2: She had been sleeping on the park bench for the past month. Sentence3: It was her birthday tomorrow and she felt lonely. Sentence4: The next day a girl she had met at the park visited her.
She bought her cake because she remembered it was Sandy's birthday.