That's to prevent the iterator from skipping and item since we're removing one, it's actually a pretty standard construct to remove items from a list while iterating it.