Pretty sure this is directly inspired by C so I would guess Guido van Rossum (the author of Python) just used what was already common back then. As in, =
is assignment operator and ==
is equality/comparison operator.
https://en.cppreference.com/w/c/language/operator_comparison
Unexpected Three Body Problem reference