Osteoarthritis develops from joint tissue wearing down over time, while rheumatoid arthritis involves the immune system. Some types of arthritis can be hereditary, including ankylosing spondylitis.