It’s because ACF will show the repeater field based on your field group setting, but it still has no initial value in the database. It will prevent the add_row() function to add the row because it can’t find it.
Have you tried the update_field() function instead?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users