Massive impact events during their formation can explain why they began as similar but ended up different.
https://www.digitaltrends.com/cool-tech/uranus-neptune-differences-impacts/
https://www.digitaltrends.com/cool-tech/uranus-neptune-differences-impacts/
Comment here