You are turning it around, but that does not change the case. If let's say Gondor is at war with Mordor, whilst Rohan and Mordor have no dealings with eachother. I might be mistaken, but in my experience neither Rohan nor Mordor would even get the option to offer an alliance to one another in the diplo screen.