I suspect that one system ends lines in <CRLF> and the other ends them in <LF> (e.g. one is some UNIX variant and one is a Microsoft OS). ASCII transfer mode will generally change the line endings as necessary to deal with this.
You can check if this is the case by seeing if
$lines_in_file + $size_of_smaller_file == $lines_in_larger_file