variant of 最[zui4]
Phonosemantic compound. 宀 represents the meaning and 取 represents the sound. Based on the original meaning "gather". The meaning later shifted to "accumulate", "many" and "most". Originally written as 㝡. Later extra strokes were added to the 宀 component.
《說文》:“最,犯而取也。从冃,从取。”
gather