Interface naming is determined by kernel hardware probing order. As a broad rule "internal" hardware normally probes first, but it's not guaranteed, so if the USB device is probed first it will be wlan0, and the internal becomes wlan1, etc.
WiFi has nothing to do with Kodi.
Do a couple of reboots and see if the MAC address of the wlan0 (USB) interface changes with each boot?