B.B.
It's because you started a habit of letting her sleep in your bed. She knows that and wants to sleep with you. I would put her back in her bed everytime she gets up. Give her a sippy cup, put her in her bed and kiss her good night again. Be consitent, do it everytime no matter how tired you are, don't give in once or you will have to start all over again. Good luck!!