The system itself determines which apps are installed in different profiles by default.
You can see examples here:
- android_vendor_lineage/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_device.xml at 147545ac4871169b01715cc2b0649618ed36b25f · LineageOS/android_vendor_lineage · GitHub
- android_vendor_lineage/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_profile.xml at 147545ac4871169b01715cc2b0649618ed36b25f · LineageOS/android_vendor_lineage · GitHub
- android_vendor_lineage/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_user.xml at 147545ac4871169b01715cc2b0649618ed36b25f · LineageOS/android_vendor_lineage · GitHub
If you want a system without garbage, then switch to GrapheneOS or my DivestOS.