Why Do Light Rays Travel In A Wave And Not In A Line?

Science could really be ambiguous sometimes. Initially, some points are told to you that is later told to be not correct and