Daughter only naps for a long time if I'm napping with her

Mr

My daughter will nap maybe 30 minutes at a time if I put her down and I try to do housework.. But if I'm lying down next to her and napping with her she'll nap for 3 hours with me! She sleeps through the night, but only because I co-sleep

Can she tell if I'm right next to her? How does she know I'm not in the room? 😭 I'm trying to clean a house and take care of my step kids but she just doesn't let me!