We don't know.
The cause of gallbladder dysfunction, or biliary dyskinesia
, is not well known.
It just tends to happen in some people. We are still searching for the exact cause, but the good thing is that at least we now have ways to diagnose the dysfunction.