Greece could default, but it was not clear what would have happened to their central bank, and if a default would have pushed Greece out of the Eurozone.
Due to these uncertainties, and undoubtedly also to pressure from the rest of the EU, Greece decided instead to renegotiate their debt with the Trojka.