Old English hu "how," from Proto-Germanic *hwo (source also of Old Saxon hwo, Old Frisian, Middle Dutch hu, Dutch hoe, German wie, Gothic hvaiwa "how"), an adverbial form from PIE root *kwo-, stem of relative and interrogative pronouns. Practically a doublet of why, differentiated in form and use.
How come? for "why?" is recorded from 1848 [Bartlett]. Emphatic phrase and how! is recorded from 1865. The formulation was common in book and article titles ("The National Debt, and How to Pay It"), but Pennsylvania writer Bayard Taylor, in whom it is first recorded, seems to have regarded it as a German or German-American expression.
ever adv.
Old English æfre "ever, at any time, always;" of uncertain origin, no cognates in any other Germanic language; perhaps a contraction of a in feore, literally "ever in life" (the expression a to fore is common in Old English writings). First element is almost certainly related to Old English a "always, ever," from Proto-Germanic *aiwi-, extended form of PIE root *aiw- "vital force, life; long life, eternity." Liberman suggests second element is comparative adjectival suffix -re.
Sometimes contracted to e'er in dialect and poetry. Ever began to be used in late Old English as a way to generalize or intensify when, what, where, etc. The sense evolution was from "at any time at all, in any way" to "at any particular time; at some time or another; under any circumstances." Ever so "to whatever extent" is recorded by 1680s. Expression did you ever? (implying "see/do/hear of such a thing") attested by 1840.