Okay so this is a famiclone and obviously the elephant in the room is that it's a total ripoff of another console: The Game Magic aka Nanica Smitch (bottom right). I don't know what that one on the top is doing there
Here's the aliexpress link if anyone is into it https://www.aliexpress.com/item/1005007915689167.html
Both of these work in basically the same way, the controllers are always connected wirelessly (and require batteries) even when attached to the console. Switches inside detect whether they're attached or detached and change the control config accordingly