H2 molecule exists because of it bond order, which is equal to one where as He2 molecule does not exist due to zero bond order. Bond order of these molecules can be calculated as follow :
H2 Electronic configuration 1H = 1s1
1H = 1s1
Molecular orbital configuration σ(1s2)
∵ Bond order is zero so it does not exist as molecule.