KeePass is a bad example. It's a Windows Forms app. If they wanted to properly support Linux, they could continue to share most of their C# code, but write a tailored UI using something like GTK#.
Nobody is truly advocating "write once, run anywhere".
Nobody is truly advocating "write once, run anywhere".