Why a moving electric charge creates a magnetic field around it?
According to the Maxwell's equations, the phenomena of electricity and magnetism are inseparable and should be taken together. Their combination is known as electromagnetism, which has been theoretically proved.
In short, the theory of electromagnetism states that moving charges emit electromagnetic radiation in the form of energetic photons. They also have a certain magnetic field associated with them on the account of that.