On the nRF9161 DK, there are analog switches that are used to connect and disconnect signals to control buttons, switches, and LEDs.
The analog switches control whether the LEDs, buttons, and switches are connected directly to the nRF9161 General-Purpose Input/Output (GPIO) or to an I/O expander. The switches are controlled by the board controller System on Chip (SoC), which contains Nordic Semiconductor firmware. For more information, see I/O expander.
Figure 1. LED and button control