Because .draggable()
is not dynamic.
Do this:
$(".ui-draggable").draggable();
$('body').append($('<div class="ui-draggable"></div>').draggable());
Your first line attaches only the elements which were present in the DOM.
It will not check for dynamically added ones.