#Why did Yahweh tell Ezekiel to act this way before the eyes of the people?

Yahweh told Ezekiel to act this way to show what it would be like for them when Yahweh brought the sword against them. [21:7]