why do disk stars bob up and down as they orbit the galaxy?

0
80

why do disk stars bob up and down as they orbit the galaxy?