Not all taxpayers in Germany are obligated to file a tax return, though all of them have the right to do so. You can apply to get your taxes refunded four years back. The tax office doesn't inform you about your obligation.
The rules for non-residents of Germany differ from residents. Filing a tax return may be more complicated if a person comes from a country with which Germany does not have an agreement to avoid double taxation.