It is the subject, there's just an introductory prepositional phrase before it. The offered translation reverses that, but "On the first floor [there] is a bathroom" would be just as good English.
I talk in arabic,if we translated the english sentence directly it should be:هناك حمام في الطابق الأول، the other sentence would be right if the english sentence was:in the first floor there is a bathroom