Cost accounting

What is the main purpose of selecting a cost-allocation base such as machine-hours or labor-hours?