SoA optimizes CPU performance by storing homogeneous data elements contiguously, which allows processors to load entire cache lines with only relevant data. This layout is crucial for efficiently utilizing Single Instruction, Multiple Data (SIMD) instructions, enabling parallel processing without costly data gathering operations.