Questions on STM32 multiple GPIO names
There are a bunch of muxes inside the chip which allow you to route signals to different pins to allow for easier part placement and PCB layout. 

The GPIO peripheral then has alternate function registers to select which function to give to which pins, these registers configure the muxes.