Why does she do this

My daughter will sleep fine when she’s in my arms or on my chest and as soon as I put her in her bassinet she wakes up 5 minutes later how do I break this habit