This is called gushing, and you usually get it with a combination of two factors:
A lot of CO2
A lot of "crystallization nuclei" for the CO2 to build bubbles and gas out
I currently have such a beer - I added more sugar in order to get more than usual CO2 and something went wrong during the brew and the beer got very cloudy. Every bottle I open ...