See that? When we use echo with a true boolean, 1 is printed. If the boolean were false, 0 would be printed.
echo
true
false
0
Remember booleans can only express truth or falseness.