means that
the outcome of an undertaking is not certain until it has actually ended, however predictable it may seem beforehand.
similar to
It ain’t over till it’s over.
Imagine a case where you shouldn't be sure for the result of something that has not yet finished; Things can changed, even the last minute.; then “The opera isn't over till the fat lady sings” fits well.