Conversely, then doesn't staying in mean absolutely nothing?  It's a useless agreement.  So, why should it matter?

It's worth noting, the reason why it's an "agreement" and not a "treaty" is that Obama had no chance of getting the 2/3 of US Senators required to sign on to a treaty required by the US constitution.  So, really, in a sense the USA only had one foot in.