Same as other commenter: Switzerland is SO expensive. Of course the salaries are higher, but damn. You can get away with spending very little in Germany, and saving a higher percentage of your salary.
Of course, the best hack is to live in Germany but work in Switzerland.