When exporting nested families, all elements will be assigned to one class / entity by default.
To export nested families as separate entities, they need to be set to Shared and can have an own IFC Class assigned, which can be different from the main family: