What would be the hazard of raising flaps on the ground?
Without knowing what type of aircraft was involved in this incident, it is hard to tell. But, in general, a moving flap would provide a pinch point for any personnel in the area. Considering the article mentions that the hydraulics were in the on position, there would be a possibility of crushing a body part of maintenance personnel.