And we learned what exactly?
The man gives them a choice to either:
A - Give up the Doctor, and no one will be hurt.
B - Protect the Doctor, and everyone dies.
Show ends with everyone in the community dead, and the Doctor captured.
For a moment I thought, "Is Rick Grimes in charge of decision making at this place too?".