I would think they have a letter of agreement or memorandum of understanding between the BP and Uvalde Police that they will assist if available.
from the article:
"In small towns, when someone calls 911 to report a medical emergency or an active crime, Border Patrol agents often arrive sooner than overwhelmed local first responders. "