UE4 has been able to export to switch for a long time (Snake Pass notably released on switch, before any other console, 4 years ago)
For Godot, there are companies that do the porting (presumably they developed their own interfacing layer), these services seem to be not very expensive, and one of the Godot founders runs one of these companies IIRC.
pjmlp|4 years ago