This is actually an expected behavior. Consider typing following commands in shell.

gedit *.txt
gedit index.txt

For first one, shell passes all .txt file in current directory to gedit. For second one, shell should pass ‘index.txt’ to gedit, it’s up to gedit to determine what to do with if index.txt does not exist.