This is D&D 5e. We were attacking a baddie. The wizard cast charm monster and charmed it.
It has an Intelligence score of 4. Is it smart enough to know that the other party members are, in fact, companions of the wizard?
The significance of whether the charmed baddie knows what companions are is in the interpretation of the companions phrase of the spell.