AFAIK, there was no compulsion.
Instead, German wanted to lend to Greek banks / Greece because they got slightly more interest in return for debt that they believed (or, more accurately, hoped) had essentially the same implicit guarantees as the German equivalent. Given how the crisis has played out, that gamble paid off. It probably shouldn't have, but then there would have been downstream issues (German banks collapsing, etc.).