Those both ingredients work on different skin concerns and different parts of the skin.
Hyaluronic acid repairs and hydrates the upper layers of the skin, while retinol has multiple effects deeper within the skin.