Because the script was probably included twice which could cause duplicate function errors, possibly. It would depend on the handle you used. If you use the same handle used by ACF then the duplication would not happen. But that’s just a guess.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users