木 is the indexing tree-and-wood radical. Here it tags
栈 as a wooden structure word — originally a wooden plank-road clinging to a cliff (
栈道), then by extension a warehouse or inn made of timber. Sister chars
板 (plank),
桥 (bridge),
楼 (tower) share the building-from-wood theme.