By default, Files open any executable file as text file. On Preferences > Behavior, you need to select Executable Text Files > Run them, and the executable files will always be executed (which probably is not preferable), or Executable Text Files > Ask what to do, and in that case you will always be asked what to do with the executable file.
