Many security deposit limit laws are added when there's a housing crisis of some kind. For example, California's laws were added in the 1970s when homeless was skyrocketing. They're usually added to cap the barrier to entry for a home.