I believe French does this as well. To answer in the affirmative to a negative question, you use "si" instead of "oui"
"Si" is also the word for "if", which has probably confused people.
(top search hit, not sure if good, but on a quick glance it looks correct https://www.commeunefrancaise.com/blog/si-in-french )