The biggest thing that causes this is stress. IF your hamster is stressed it will sometimes lose its hair. Things like rapid environment changes and dietary changes can cause it. The next biggest cause can be an infestation such as lice. Pick it up and look at it if there is any sign of infestation get it treated.