why variational inference in variational autoencoder if dealing with simple graphical model
I'm not sure if I get the question correctly, but we use variational inference, because we do have many dependencies. X and Z are usually high-dimensional vectors with complex relationships.