It's not so much that Apache writes projects in Java, as that companies with Java projects find that Apache is a good place to give them to.
The Java/C(++)? divide also seems to correlate with "commercial-friendly" (Hadoop, Lucene) versus "developer-friendly" (Blender, Linux) software.