One use case is in observability/metrics:
https://docs.micrometer.io/micrometer/reference/concepts/gauges.html
All of the different forms of creating a gauge maintain only a weak reference to the object being observed, so as not to prevent garbage collection of the object.