It's explained pretty well above, but to simplify it (remember, simple is good).
A male has an XY pair of sex chromosomes. Female has XX.
If a male is conceived, the Y has to come from the dad, since the mom has no Y to give.
Therefore If the male has the disease he passes on only his disease free Y chromosome to his sons (no disease) and only his diseased X chromosome to his daughters (disease). Therefore the daughters are affected, and the sons are free from the disease.
It's as simple as that!