Maybe it takes into account if the user doesn't have write access to the folder? If the user didn't have access, the touch command would fail, whereas going directly to vim, it would only fail when trying to save (potentially losing the work done in the file)?