This is just a lucky combination of speed, pressure and humidity, there's no guarantee of it happening. Other aircraft do it too, including rockets, but for some reason the F/A-18 is particularly susceptible (or just the most photographed), and it has a name - the Prandtl-Glauert Singularity.
__________________
|