It just happens
Because you gave oats and the hiccups occurred after does not mean the hiccups were caused by the oats. That is a common error. For instance, you get up in the morning and you have breakfast. Getting up did not cause you to have breakfast, even though one followed the other. Parents are usually more bothered by hiccups than hiccupping kids. Don't worry.