https://www.hillelwayne.com/post/equals-as-assignment/
The summary is that C used it because assignment was a lot more common than equality checking, and back then, typing fewer characters was a big deal.