Vulnerable road users such as pedestrians who are engaged in work along the roadway are protected by warning signs and flashing lights. Because without those objects they might be in great danger. Through the use of those tools, drivers are aware of what's going on the roads, and that way they tend to be more careful in order to avoid any damage to the pedestrian workers.
And although it's important for workers to focus on what they are doing and pay attention to their job assignments, they can't forget about the traffic and need to be ready for any eventuality that may happen.