Murdock was mayor for about 10 minutes. Long before that, he was a well known criminal defense attorney. The type of attorney that every high profile defendant wanted representing him. Think of him as a comic book member of OJ's Dream Team.
As for Stark, he was a celebrity long before becoming SecDef. Heck he inherited celebrity notoriety as the son of Howard.