The management may perceive that you have an attitude. The manager is playing a "triangulation" with you via the "foreman."
They say that attitude is everything. Maybe try not to show your attitude so readily. Negative attitude is often a distraction one nurses inside so that he is less burdened by a sense of responsibility.
Or, you were just trying to protect yourself from some potential harm?