I'm 58 y/o and had cartilage removed in my right knee 37 & again 13 years ago, could those have been a cause of my hip replacement?

No. An arthritic knee may have a small effect on the hip, but does not causes severe arthritis in the hip.
Possible. There is no clear cut correlation between knee injury/arthritis and hip arthritis. However, if the mechanics of your leg have been abnormal for many years, that may have predisposed you to developing arthritis in other joints.