So porting applications between OSes is indeed not easy, generally speaking if the dev doesn't use an engine.
However, RPG Maker, Godot, Unity, Ren'py, Unreal, Twine are indeed as easy to export for Linux for the dev as ghost_one says, because the engine is doing the heavy lifting of wrapping...