Nevus of Ota is not strictly hereditary, but there may be a genetic predisposition. The exact cause of the condition remains unclear, and it is more commonly observed in certain ethnic groups.