Why are US military ranks different to UK military ranks?

Each country has their own way or ranking their military personnel. Originally, the United States' ranking system was based on the way the British ranked their military, but over the years, it has changed.