This's probably a bathroom or a shower of some sorts hahaha
I saw similar rooms in some medieval castles when I travelled across Eastern Europe. They probably had some kind of water system back in the days, and then the ...hm... "dirty water" went throught the metal grille.
"dirty water " 😅😅