Why some atmospheres are lost