I've no certainty here, but I strongly suspect that it's a Perlism that PHP partially took.
In Perl, $a == $b would be true -- just like in PHP. However, in Perl, you use string comparison ($a eq $b) when you want to compare strings. PHP doesn't seem to have string comparison outside of ==.