Why we can backup postgresql database backup without password?
Read documentation on this: "If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt will fail." This parameter doesn't mean that you can connect (and dump) without knowing password, it is just help for (backup) scripts where entering passwords isn't possible by hand.