Two people cooking a meal together in a household kitchen.
Two people cook together.
People cook together is rephrasing people cooking together.
Two people cook together is part of their description in a household kitchen.
"Cook" is a rephrasing of "cooking a meal."