Decades of inept economic, infrastructure and education policies by incompetent leaders has put them in this place.
Germany, meanwhile, has dealt with a the huge unification problem with its formerly communist sister, and they have prospered, so just maybe Greece and the other bankrupt sovereign states should listen to Germany and take the bail out with their conditions.
If you look at it from a bigger picture level, what's happening is that you have a bunch of countries that have a terrible history of running their affairs that are hanging on to the idea of their sovereignty, despite the fact that a more united federal system would be better. Economics is driving Europe into a United States model, where a federal policy making system of government helps prevent this kind of gigantic screwup by Greece and co.