The need of swap partition (typically 2x ram_size) makes little sense for systems with adequate Memory as it is rarely used. Also, the size of the swap file will be no more than 5% of free disk space (or, 2 GB RAM) for ubuntu 17.04 which is much lower than a swap partition could be another reason.
But why??