In general commit ID characters length is 40, but you know the previous 7 characters can represent the commit too. Now that the previous 7 code can represent the commit, why the commit code length still be 40?
You can see from the upper snapshot, the parent commit represent code length is 7.
EDIT
I am asking why GitHub chooses to use 40 characters to represent the commit ID but only 7 characters to represent the parent ID?