DDR, DDR2, and DDR3 have different pin layouts and the notches on the bottom of each type of module are different to prevent you from installing them in a slot not made for the module you are trying to use. If this notch didn't exist and you installed the wrong generation of DDR then you would damage the RAM and probably the motherboard and possibly the CPU.
These differences are because unlike different generations of SATA and PCIe the different DDR generations are very different technologies.