Default [Q] Camera speed question

So I think it's clear that the stock camera is a lot faster than AOSP cameras.

Can someone explain why this is so, and if there is any way to get a faster camera on AOSP?