Bubble nests are made by male bettas. They make bubbles anf the float to the top and all stay together. This is for when they mate. The males will take the fertilzed eggs and put them in the bubble nest.
My betta male Rainbow doesn't make them often at all.