Cost accounting

Why are manufacturing product costs initially recorded in inventory accounts?