It's all about making them feel comfortable. Biting is a defense mechanism. Hamsters bite because they're scared or feel threatened. It's actually a natural reaction, and stems from them being prey animals; they need a way to protect themselves.