Inherited from Old Polish dziwny. By surface analysis, dżiw + -nÿ.
dżiwnÿ (derived adverb dżiwnie or dżiwno)