Interactive elements like buttons use blue borders when a user focuses on the element. This is great for accessibility because it lets users see what the active element as they navigate with their keyboard.
It’s annoying though for users navigating by mouse. This has been fixed with the focus-visible property so that clicking elements no longer adds a blue border.