The second object might have a horizontal velocity, but that does not affect the fact that its vertical velocity is still 0. Since both objects are at the same height and have an intial vertical velocity of 0, they will hit the ground at the same time.