First, many chips come in different packages. The one shown in the image is DIP (Dual Inline Package). There are others that are packaged as SMD (Surface Mount Device) which are internally identical. Those are usually square packages.
Second, the schematic view has no need to look anything like the physical parts. That is a logical / electrical / functional representation. The only thing that needs to match, are the connections. Even that can vary, when a part has multiple pins that are connected together internally. Like ground. The schematic only needs one ground pin, if the part is created correctly. Also the schematic normally groups pins together by function, even if they are spread around the physical pins. So address pins are a group, data are a group, input are a group, output is a group. Ground at the bottom, power at the top is a convention for schematics. Sometimes the schematic representation for part aligns with the layout of the pins on the physical part, but that is not needed, and should not be expected.