What a user agent string says
A user agent is a line of text the browser sends with every request, naming itself, its version, its rendering engine and the operating system. A typical one for Chrome on Windows reads Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36. Only "Chrome/141" and "Windows NT 10.0" carry real information; the rest is kept for compatibility with sites that check for older browsers.
Because of that history, almost every browser claims to be several others. Edge adds "Edg/", Opera adds "OPR/", and both still say Chrome and Safari. Parsers have to check for the most specific name first, which is a common source of bugs in analytics and browser detection code.