Our minds are so eager to make associate spaces to thoughts and feelings. I heard from some sleep expert that it's good to go to bed only if you when you are ready to sleep. Don't work or watch Netflix in bed. Your mind will associate the space for sleep only
My mom's dog who is adopted from a shelter is very easily scared. She is not letting me go near her. She might get up and run away when I walk by her. But if moments later I turn and sit on the sofa. She might even jump on it to sit close to me. I think this is happening because she got used to me there when I joined my mom when she was watching television. She might have gotten used to my presence there. The same goes with kitchen. She is 50% less scared of me there. She came close to me there many times because I had food and she might associate kitchen with more positive emotions and interactions.