Controllers are really small these days and fit just fine in the gaps between keys (see link below for a typical example). It’s almost certainly mostly for the battery.
You are correct! There was not enough space below the keys due to the device's low profile. So the right hand area houses the MCU, USB C port, battery, as well as the 2 slide switches and button that poke out the side of the case.