Well mostly because you have two rows in $row. Why is the foreach in there anyway, you aren't using it. You are addressing the elements directly with $row[]. You don't seem to need the $key or $value variables you created with the foreach.
if $row is ('email'->'me@joe.com','name'->'Joe')
the for each will produce the following $key/$values (and make two passes)
Pass 1
$key = 'email', $value='me@joe.com'
Pass 2
$key = 'name',$value='Joe'