Ironically, German law says that the first six months are a trial period for both sides, and you can be fired during that time with a two week notice for no reason.
It cuts both ways: the employee can walk out during the trial period for reasons such as feeling like they didn't fit in, or the work being different from what they imagined. But if they merely find a better-paying job elsewhere, they cannot invoke the trial period but have to give notice in the usual way.