Medical bunks. The sick and infirm would be kept here until they could stand up. Then they would be sent back to their quarters to finish recuperating. I think it was posted somewhere here that HMS Belfast had ten beds. Right-click and choose "view image" to enlarge.