This is because light, among other things, is a wave. Light waves radiate from a point outward, similar to how water waves ripple when a stone is tossed into a pond. As light encounters an edge, it is bent and redirected. In situations where these light waves meet and interact, they can interfere constructively and destructively, amplifying or canceling each other out. This makes light and dark spots that show in diffraction patterns. (3/7)
Primary mirrors in reflecting telescopes cause light waves to interact as they direct light to the secondary mirror. Even if a telescope had no struts, it would still create a diffraction pattern. The shape of the mirror, and any edges it has, determine its pattern. In general, you will get one spike per edge of your mirror. So, JWST's 6-sided mirror makes a 6-pointed pattern. (4/7)