Well, there could be a variety of reasons. Maybe the nerd was being bullied or mistreated by the coworkers, or perhaps they had a hidden psychological issue that was triggered. Another possibility is that they were framed or under the influence of something.
The reason could be complex. It might be a combination of personal problems, work-related pressure, and a moment of extreme emotion. Maybe the character had a history of violence that was dormant until now.