The character 二 is an ideograph (指事字) formed by drawing two horizontal lines.
This principle applies to 三 as well, and even 四 used to follow it—originally written as 亖, adhering to the same logic.