Most of the bones spotted at San Francisco beaches probably came from stranded whales. If they decompose on land, chances are their remains will eventually resurface during powerful storm events.
https://www.sfgate.com/bayarea/article/storms-whale-bones-san-francisco-17729078.php