If we shine a green laser on a wall in a dark environment, we would observe a bright dot in the middle. Now, if we fix a grating just in front of where the laser is held, when the beam strikes the grating, the photons would spread and form a grid of dots on the wall instead of one at the center.
The traditional explanation is that the grid of dots form because of the spread of light as the photons exit the aperture, where they start expanding and interfere with each other.
For example, in Why does a wave actually diffract? and in Why does light diffract only through slits?, the general consensus seems to be that light diffracts all the time, not just through slits, but that this radial nature of expansion only becomes apparent once we add the slits. However, in that case, we would expect the laser to reach as far in every direction with or without a grating at the front.
Edit: Another explanation that uses Huygen's principle as suggestification is in Khan Academy. if you watch the video on Young's Law, then you would figure out that the often recounted analogy of why light expands when it enters a slit is that there is nothing special about the slit, but that the expansion is a general property of light, aka Huygen's principle. The problem is that it doesn't really explain why diffraction happens.
This view is inaccurate because the slit affects the overall angle of produced light. Otherwise, laser light should expand without any slit at least as much as if there was a slit (grating), because the principle of Huygen should apply equally whether or not there is a grating. But through my school experiments, I know that a slit will sharply increase the angle of expansion, which does not agree with the proposed explanation. The conceptual explanation lacks any explanation for why the total angle of diffraction would increase.
It appears that the real reason behind why a grating causes light to spread is that it hits the edges of the slit as @Solomon argues. The edges of the slit cause it to bend in other directions, causing a larger diffraction.