wiktionary
ref
Contraction of cup of (with “tea” or sometimes “coffee” implied). See also a(“of”), pinta(“pint of milk”).
etymonline
ref
cuppa (n.)
colloquial shortening of cup of (coffee, etc.), recorded from 1925; as a stand-alone (almost always with implied tea) it dates from 1934.