Flexor and extensor muscles work antagonistically to operate the joint.
Flexor and extensor muscle work in the different direction. This will be called antagonist muscle because their force will cancel each other. It is important to have antagonist muscle because muscle could only shorten, thus could only move the body in one direction. Having two antagonist muscle will allow 2 moving direction