Why is merging branches in version control systems (e.g., Git) necessary?
A) To delete old branches that are no longer used
B) To combine changes from different branches into a single branch, ensuring all updates are included
C) To reorganize files and directories in the repository
D) To create backups of the codebase