Not true. Nobody is guilty of treason here.
First: The mere disclosure of having one of the three mainstream level security clearances is in itself NOT classified information. What is classified is, for example, a SCI Code Word clearance, because the code word is in itself VERY classified, you may not disclose that because it draws attention to the highly classified program you are involved in... However, even though at times it may not be prudent or wise, you can legally disclose the mere fact that you have a Secret or a TS clearance. No problem.
Second: A security clearance does expire after a certain specified time without a periodic reinvestigation (from one to ten years depending on the level, and it is in inverse proportion to its level.) After it expires, as far as having access to the classified information,... it becomes as if you never had it. Although it is easier / quicker to re-activate it through a re-investigation, which would reinstate your clearance, it must be done otherwise you are not cleared any more.
Third: Security Clearances vary with different agencies. Just because you might have a TS/SCI/Lifestyle from the DoD, does not mean you will hold the same level if you leave DoD and get a job at another federal agency. It only means that you are a good candidate who is eligible for a clearance and that the chances of flunking the BI are very small. It says that you are "clearable" and not a waste of time and money. Even though it seems like a waste, a new agency many times will require a second background investigation on you to the level you need, but not more. You might only get cleared to Secret with the new agency, because that's all you need. [Although it might be an ego boost for some, believe me, holding an active TS/SCI is a huge pain in the rear and a big burden on your personal life, so if you don't need it, you are MUCH better off not having it.]
Fourth: Yes, your clearance is automatically revoked when you leave the agency or leave the contract. You are still accountable for disclosure of any of the classified information you attained while employed. You have to sign a legally binding document to that effect when you get the clearance and again when you leave. Plus you get a very serious security exit debrief. But any further access to classified documents is off limits, until you are employed again in a position that requires it and the clearance is reinstated.
Who pays for it?:
It is always a balance between time and money to get the right people. The cost burden of the BI for a security clearance is specified in the contract.
Sometimes, the gov't specifies that certain people have to have such and thus level, so the gov't pays for that BI for those employees. The financial risk for the contractor is smaller in this case, except that it is motivated by the time it takes to find and get the right people in the right place quickly.
At other times the Gov't specifies that it will need to get reimbursed for the cost of the BI, then the contractor "pays" for the BI. It is in this last case that the contractor is most motivated about getting "clearable" people hired for the position. Thus if you already had a recent TS, you are now readily clearable because you pose little financial risk to the contract.
Let's say you have just left DoD with an active Top Secret level clearance and apply to company ABC and that company has a contract with the DoD which has some TS classified portions, and if your potential job is involved with those classified portions, your DoD clearance can simply be reinstated and you are golden. Everybody saves time and money. BUT, and here is the kicker, if you move over to work in another contract with another non-DoD agency that also requires a security clearance, the DoD clearance may not be accepted, and you might have to get cleared all over again. I have seen people with a Secret Clearance in contract X, a TS in Contract Y and a TS /SCI in contract Z, all at the same time. Crazy, I know, but that's reality in this crazy & paranoid world we live in.
Clear as mud? Good.
Bottom line, just apply and let the chips fall where they may. Some things you can control, other you cannot.
Good luck.