The purpose of a patent is to compensate you not for inventing something but for disclosing exactly how it works. If what you did is straightforward, why should we grant a generation-long monopoly to whoever bothers to do it first?
I guess one way to ask it might be, "how does one find a straightforward path to an unknown destination?"