Why SaaS uses it
One codebase and one platform to maintain for all customers keeps costs down and lets every customer receive updates at once. Our TaxiDex dispatch platform, for example, runs many taxi companies on one system, each seeing only its own data.
Keeping tenants apart
Every database query must be scoped to the tenant, tested for leaks, and enforced in one central place rather than remembered in each feature. Some products give large customers separate databases for extra isolation.
Questions, answered
Not when designed and tested properly, but isolation bugs are serious, so it needs careful engineering.
Usually through settings, branding and roles rather than separate code.