In short, over carbonated beer will cause the beer fountain effect, the reasons for over carbonated bottles can be:
Bottling too early (too much sugar left in wort)
Too much priming sugar used or uneven distribution of it
Wild yeasts fermenting out all the sugar (could have got in during transfer or from dirty bottles)