There are several reasons why a hamster gnaws bars. A hamster can try to get your attention. He can also be bored. Another reason why the bars are gnawed is because the animal is in pain (for example, teeth that are too long), the gnawing is distracting. Your hamster can also gnaw on the bars to demand attention. If you give the hamster a lot of food through the bars, this can also be a cause.