According to Wikipedia ...
"...here in the Northern Hemisphere,
many birds including inexperienced young adult birds continue past their normal breeding cycle during their migrations in Spring and end up in areas further north than planned (such birds are termed spring overshoots)..."
In autumn, some young birds, while on their way "south" to their usual wintering grounds, take "incorrect" routes (not having the benefit of portable GPS) and end up flying through areas that are not on their normal migration path. The causes of this are mostly unknown, but anomalies relating to the bird's magnetic sensibilities is suspected according to experts who study the species.Other birds can be driven off course by storms. Some North American birds have been blown across the Atlantic Ocean to Europe.

Birds can also be blown out to sea, become physically exhausted, land on a ship and end up being carried to the ship's destination.

While many vagrant birds do not survive if sufficient numbers wander to a new area they can establish new populations. Many isolated islands are home to species that are descended from land birds blown out to sea,  Darwin's finches being prominent a prominent example.

A fisherman in Maine tells how he saved a tiny bird that was blown offshore by strong winds.  (He nourished it, kept it warm and brought it close enough to dry land so he could release it safely.)

From Jacob_Knowles Tiktok...