The upper portion is a compressed
羊 (sheep) — head and horns visible. Combined with the
工 (work/tool) component below, the original character depicted measuring or selecting sheep, comparing one to another. From 'comparing/sorting' came 'difference,' and from notice of inequality came 'poor, lacking.'