“GO” is not a Transact-SQL statement but a batch separator. It is a command identified by the sqlcmd and osql utilities and SQL Server Management Studio Code editor.
SQL Server utilities read “GO” as a signal that they should send the current batch of TSQL statements to an instance of SQL Server.