Hardware design is all about precise design and consideration of all factors, where the end product will be the intended PCB that can pass all tests and measures up to all expectations.
The circuit board layout is optimized for performance, taking into account expected enclosure size and heat map analysis. Since communication is the backbone of a systems like these, reducing capacitive coupling is crucial to avoid crosstalk.
Meeting all criterea set by the enclosure design renders these two development processes essencially intertwined in the sence that one cannot progress seemlessly without the other. Any minor or major changes on the interior can easily affect the exterior design of a device in development, and vice versa, there can be cases where changes in the enclosure design affect component layout on the PCB.
Component availability, ease of assembly and other factors that influence the final product price, service life, and the manufacturing process are also considered for the achievement of a great product.