This is a random question in between History and English.

Why did Anne Frank and her family hide if they are Germans?

I do know that they were Reformed Jews (adheres to a system of religious worship adapted from Orthodox Judaism to meet the demands of contemporary life, frequently simplifying or rejecting traditional religious law and custom.) But I'm confused why they hide if they are Germans.