The rims are raised before the coin is struck. The machine that does this is called an upset mill. The raised rim helps the rest of the coin strike up better. Grease/junk can fill parts of a die and create all kinds of looks.