The US demands were clear - no nuclear capability whatsoever, not really a hard demand to meet if you're coming "in good faith".
Iran decided to play stupid games and found out.