Can anyone explain why there are so many control boards? It seems like a nightmare wiring those systems together and coding them all to correctly interact together.
Then again I have limited experience with real-time systems.
They are indeed for modularity. One benefit here is that dealerships can quickly swap part of a battery (cells and controller) to make repairs quicker. The other benefit is that smaller batteries can be made by using the same components and code.
Most modern cars will have lots of separate controllers. Many of the functions of the car are largely independent and having them on separate boards means they can be physically closer to the things they are controlling, and the number of functions that each is responsible for is reduced which simplifies design, coding and test.