Is it for performant reason ?
I guess it's similar to Python having a single instance of small integers. PlayStation also experimented with caching small floats which gave them some perf improvements too, but I think wasn't as performant in all cases.
All of those strings will be interned, and can thus be compared by identity. Which is an integer comparison.