This is a duplicate question since it was answered before, maybe some more research and you would find the answer :D
There's a Stack Overflow question asking something similar (this post).
The main reason is how inet_aton() (man page) converts the octets into the binary address.