Adding comments can help explain the purpose of the code, provide context for other developers, and improve the overall understanding of the codebase.