Three instances in which versions are created.
When are versions created? A handful of times. The most important ones to know about are:

When you first add the file to the library.

When you edit a file, save, and then close the file.

When you check out, edit, and check in a file.