Daughter and her sleeping

Brandy
She is 7 weeks old today and has been doing amazing sleeping in her crib until the past three days she will only sleep if she is beside me??? I'm curious as to what changed her from the crib to be? I've done nothing different! 😁