Why does vertigo occur? Is it inherited?

Many & maybe. Vertigo is properly defined as an experience of motion (usually spinning) perceived by patients as in them or environment. Multiple causes exist from drugs, infection, trauma, barometric pressure, positioning, blood pressure etc. Meniere's syndrome is a potentially inheritable form of vertigo loss hearing loss.