As i mentioned before, its caused by gas build up underneath the surface from bacteria... which doesnt happen instantly, and not always all over the tank, just the infected areas...
That in turn could be caused by deitrus, leftover food, fish poo etc, then it settles below the surface and starts forming gas pockets etc...
Which is why anyone that has a sand substrate layer or otherwise should stir their substrate during every water change...