Hamsters are known to poop where they sleep. This is entirely normal. The majority of hamsters will poop in their bed, as they like to go when they need to and are not concerned with it being in there with them. Sometimes, they may even pee in their bed too.