`> 0` redirects to a file named `0`. Note `> something` or similar syntax does not have to be at the end. The file will be created even if the command being redirected doesn't make sense. In your case the command is `[ 1 ]` and it's syntactically valid: it checks if `1` is a non-empty string.
You probably meant `[ 1 -gt 0 ]`. See `help [` and `help test | less`.