The are infilling of pockets of gas that create cavities in the lava as it cools and hardens.
The rings are formed by pressure changes in the cooling rock.