Why? There is no law against not running for office. Who's to say that one reason over another is legal or not legal?
But, once a candidate files and is running, different rules apply, don't they?
-PJ
The U.S. Code?
Whoever, directly or indirectly, promises any employment, position, compensation, contract, appointment, or other benefit, provided for or made possible in whole or in part by any Act of Congress, or any special consideration in obtaining any such benefit, to any person as consideration, favor, or reward for any political activity or for the support of or opposition to any candidate or any political party in connection with any general or special election to any political office, or in connection with any primary election or political convention or caucus held to select candidates for any political office, shall be fined under this title or imprisoned not more than one year, or both.
Let me pull out the verbiage that puts the quid pro quo of an unannounced candidate into the legal hopper:
Whoever, directly or indirectly, promises any... position... provided for... by any Act of Congress... to any person as... reward... in connection with any primary election or political convention or caucus held to select candidates for any political office
Promising a reward to a person, in the form of a Federal job, for them not to run is a violation of this particular law.