Why is a Miao village called 寨 (zhai) in Chinese

INSUBCONTINENT EXCLUSIVE:
Do you know the difference among "村 (cūn)," "庄(zhuāng)," and "寨(zhài)"? Join me in a Miao village in Guizhou
to learn more!