How? I know lots of people that have married foreigners and didn't lose their US citizenship.
IIRC It had to do with the laws of the police state Indonesia had at the time. All the paper work that each family and individual had to carry with them.
...I’m not an expert in the area, but one night someone who had done the research, posted the law there.....You are welcome to look it up for yourself.