It's not just cache locality, but also at least the effectiveness of cache prefetching and the ability to use wider operations.. simple array loops are something compilers can often vectorize without assistance.
I stand by the lack of integrity that I got downvoted for pointing out! I’ll die on that hill.