This is to prevent a common typo between ==and =, known as the iodine condition. Consider the following:
if( false = $foobar) {
This will result in an error, catching what will be considered an error, since you cannot assign anything to false. On the contrary:
if( $foobar = false) {
This is a valid syntax and this is a pretty simple mistake.
if( $foobar == false), .