There are three possibilities:
1. Google wants to monetize the novel features of Glass
2. Google is bound by licenses for the technology, and is unable to open source certain bits
3. They will open source everything eventually, but decided to rush this bit for publicity reasons