One kitchen, two flags
The cooks moved freely for a century and a half. Then a border was drawn and both sides wanted the recipes.
For most of the period in which these dishes took shape there was no Singapore and no Malaysia in the modern sense. There was a peninsula of Malay sultanates and, from the early nineteenth century, a set of British-run ports: Penang, Malacca and Singapore, governed together as the Straits Settlements. People, goods and recipes moved between them without a passport.
Into this came migrants in great numbers: Hokkien, Teochew, Cantonese, Hakka and Hainanese from southern China; Tamils and others from India; Javanese, Minangkabau, Bugis and Boyanese from the islands. A Hainanese cook might work in Penang, then Kuala Lumpur, then Singapore. A family might have branches in Malacca and Singapore, and still does. What they cooked went with them.

The line
In 1963 Singapore joined the new federation of Malaysia. In August 1965 it left, and became an independent country. Two governments now had to build two national identities out of one shared culture, and food was among the handiest materials.
Tourist boards on both sides began promoting more or less the same list of dishes. Sooner or later they were bound to collide.
Why food, in particular
In two multiracial countries, food is one of the few things everyone agrees to be proud of.
The two cuisines differ just enough to argue about: a darker sauce, a sweeter sambal.
Water, territory and history are serious quarrels. Food lets rivalry be aired without harm.
Scholars have a word for the use of food to mark out a nation: gastronationalism. The Singapore and Malaysia rows are among the examples they study.
Other food borders
An older and sometimes angrier rivalry.
Lebanon and Israel, with record-breaking platters.
Armenia, Azerbaijan and Turkey, at UNESCO.
The same argument in a milder key.