Why is the Roll up Costs process not including the resource cost while rolling up the cost of the item

If the cost of the resource isn't considered by the Roll up Costs process, check whether costing is enabled for the resource.

Also, check whether the product is a phantom item. For phantom items, set the Phantom Operation Inheritance parameter to Materials and Resources in the Manage Plant Parameters task from the Setup and Maintenance work area.