How does crate training work

How does crate training work