Electromagnetic waves are generated by accelerating electric charges.
Photons on the other hand, tend to describe something different, specifically the particle nature of electromagnetic waves as detected experimentally.
Is it something like EM waves are like the ripples in water, but photons are like the individual molecules of water in a wavefront? Or is it like the amplitude of the wavefront?
According to this answer, phonons can be thought of as molecules of the medium, but photons don't move in a medium. If we were talking about current, we would have electrons acting as a waveguide, but EM waves are different.
(Is it too far off to think of the electromagnetic field as a medium? e.g. like a 2d matrix full of 0s, and if I place a +5 value in a corner, it spreads out to the three adjacent cells in the next step, and so on.)
Also, if there is a difference between the two, why are they always mentioned as synonymous? Is it a common mistake?