can someone tell me why?

My baby girl will not sleep in her crib../ for the life of me we've Tried. She just turned 4 weeks today and last night we gave up and put her in her bassinet and she slept from 11-4 ate and slept from 430-830!!! Why does she prefer the bassinet so much? It's place in her room right beside her crib