The simple answer is that they're meant to remind Jews of the miracle of the oil associated with Hanukkah. The temple only had enough oil to light the candles for one day during the battle to overthrow Syrian rule, but miraculously the oil lasted for the entire 8 days until victory. Hanukkah is a celebration of the victory, and fried potato pancakes are eaten in commemoration.