Origin of the quantum group symmetry in 3d quantum gravity