daydreaming is often a coping mechanism for people who are often lonely or don’t receive a good amount of love in their life, so they make people inside their heads that will love them so they can feel the right amount of love.
in addition, people often daydream about different kinds of love they crave in real life.
for example, lonely people will more likely to daydream about having friends, so they can feel like they aren’t lonely in this world.
people who have friends that constantly dissapoint them will more likely to daydream about friends that meet their (sometimes, unrealistic) expectations.
people who aren’t close to their parents will more likely to daydream about better parents that can love them more than their actual parents.
people who aren’t in relationships but crave them will more likely to daydream about it; either making their own partners or imagining their existing crush with them.
a lot of people don’t even realize the pattern until it’s pointed out. you might not daydream about yourself or putting yourself in those situations, but you still daydream about your characters having the love you crave in real life, because you can still feel the feeling.