Why does the LED turn on after the while loop becomes false?

I see. I'm just trying to understand other people's code so I can implement their pieces into mine.

I think I understand it now though...
The while loop will continue to check the button's value once it is low. But when you let go to make it high, the while loop stops and it executes the blinks.