The biomineralization of gold nanoparticles is actually a detoxification reaction by the cell. First it grows into a biofilm on a gold surface. This formation facilitates accumulation of soluble gold Au(III). This version of gold is required to aid metabolism (redox reactions).
However, high amounts of soluble gold is also toxic to the cell. Overtime, the quantity grows and so does the toxicity of gold. The cell then reacts by increasing expression of genes that detoxify. It detoxifies by either reducing the gold to Au(I), methylation or simply by throwing it out in the form of a nanoparticle Au0.
Here is an article I recently read on this with some more detailed information: