Looks like this was a problem (see this thread) in the past and then got re-introduced.
In this commit, the robots rules with slash got removed because it was thought they are no longer needed. Later, in this commit they were re-introduced but without the slash in the end.
I put together a quick-and-dirty pull request that should fix the default robots.txt file: https://github.com/discourse/discourse/pull/12349