You can make different profiles. They can have different unlock methods and can have different apps installed. If you have one app installed in both it's shared.

They were designed so multiple people could use one device.

Some people use them to separate identities or contain apps they view as bad. I'm not sure if the efficacy of this.

Grapheneos improves them significantly https://grapheneos.org/features#improved-user-profiles