ref
1920s: probably an alteration of upsy-daisy; compare with oops.
Onomatopoetic.
From whoop + -s.
whoops
exclamation of dismay, 1925; see oops.