Sleep difference

I feel like my baby sleeps longer in our bed then she does in her bassinet.

Is there a reason why? Do you sleep with your baby?