Different sound for 七

Usually 七 is pronounced nana but 七時 is pronounced shichiji. Why does it make different sounds?

Usually 七 is pronounced nana but 七時 is pronounced shichiji. Why does it make different sounds?