There is no law in Germany that requires riders to wear a helmet. In many riding stables, however, it is customary for students to wear a helmet when they get on the horse.
This is mainly for insurance reasons. At tournaments, helmets are compulsory for all participants under the age of 18.