If a female hamster encounters a male when her estrous cycle is not at the point for mating then the two hamsters will be aggressive to each other and could be injured from fighting.
In the wild, hamster mating season is spring and summer, so hamster mothers only go into heat in those seasons.