History on the Oregon law here, passed in 3 B.W. (before whale).
https://www.opb.org/news/article/history-oregon-tom-mccall-public-beaches/
While California has public beaches, they have private beaches as well. In Oregon the entire coastline is public.
https://www.californiabeaches.com/california-state-beaches/
Looks like WA is the same, public/private mix.