Both ServlertServerHttpRequest classes in org.springframework.http, a lower level package, use UriComponentsBuilder from the higher level org.springframework.web package. It's an isolated case of fallback handling of URISyntaxException where we could probably find an alternative for.
The cycle was introduced in 6.2 with #30489.