On the Bubble

What does the idiom “On the Bubble” mean?

Definition:

One of a group that may be selected for the last spot in a competition

For example:

“The team is on the bubble—there are three other teams that might make the finals.”