It depends on the complex. Sometimes the property owner hires a dolt of an architect/engineer and they don't properly plan for something as simple as parking
Most cities have an ordinance that requires a minimum number of parking spaces for higher-density residential properties, and these minimums are usually what a lot of these engineers try to stick to. In practicality, though, it never makes sense.