That's the difference between the paranoid and the rational.
Mind you, failing at this gamble would have devastating effects, as was evidenced by many occupied nations during the last major conflict in Europe.
Note that Costa Rica has no defence force at all.
> failing at this gamble
Yes, all adult decisions are based on uncertainty. Especially when resources are limited.
For example, it takes the US Army almost 2 years to train helicopter pilots. Similar for Air Force or Navy pilots.
Furthermore, Germany isn't militarily threatened by any country with capabilities to invade it. France and Britain are close allies, the US kinda still is, Russia's economy is extremely reliant on Germany and the other countries around it are to small to pose a serious threat.