I don't know about this specific building, so this is just speculation, but it looks like an old public building, something like a school, city hall, could even be a market or public bathroom.
My guess is those door are new, and a way to close an otherwise open entry to a courtyard.