Stretching your joints causes the synovial fluid within them, which contains dissolved gases like nitrogen, to form bubbles. These bubbles burst due to pressure from the movement, creating a popping sound