why did you come so early?
means you are already there and someone asking you why did you arrive so early on a particular day.
why do you come so early?
it probably means you've been coming early on a regular basis so the other person is asking the reason in general, not just on that particular day.