So step 1 : compare likes that all sell at the Same Price Point..
Components In general
Shimano has very sophisticated production machinery .. do everything including putting each part in it's box.
the hand labor is the people putting the parts* on the frames, and packing the bike in a box for Containerized Ocean shipping ..
for the OEM factories there is a Bulk packing in pallets that are taken back to be refilled ..