Developers leverage schema theory by recognizing familiar architectural patterns and design principles (e.g., MVC) to quickly infer the intended purpose and structure of complex codebases, drawing on pre-existing mental frameworks to interpret new information.