Each to his tent
Here’s what it means
People dispersed to their homes, tribes, or customary living places.
Why the Bible says it this way
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.
A helpful detail: Even after many Israelites lived in houses, “tent” could remain a traditional expression for home or tribal dwelling.