Top-left shelter radical — a wall and roof meeting at a corner, a roof-line with one side wall. The indexing radical, putting
庄 in the family of large covered places:
店 shop,
库 storehouse,
床 bed,
庙 temple.
庄 is a manor or village — a clustered set of structures under shared authority.