In the old clan system,
庶 marked children of concubines, opposed to
嫡 (children of the principal wife). The
嫡 versus
庶 distinction governed inheritance and rank, a recurring plot driver in historical dramas. The separate sense 'the many / common folk' survives in
庶民 ('the common people').