Difficult with brick walls, but easy with concrete walls. The Soviet Union famously did that a lot. For the brick aesthetic, just add a brick facade on top. Or insulation foam boards and plaster for a more boring but functional look
It wasn't and isn't particularly popular. I don't know the precise reasons, but I suppose the fact it was tried, and didn't work says something.