Origin of artificial electrodynamics in three-dimensional bosonic models