The answer to your first question is somehow opinion based.
The idea is that a swapfile is a better option because you can easily increase/decrease its size or even remove it and use the free space for other purposes without any further steps. I guess because of these advantages they decide to move toward swapfiles:
Today, carving a partition and reserving twice the RAM size for swap makes little sense. [...] Or if said [partition based] swap space is in use but is of inappropriate size, changing it in-place in retrospect is painful.
Why they didn't implement it for LVM? I think that's because LVM snapshots don't exclude the swapfile changes but having swap in a separate logical volume works around the issue:
On LVM based installations, swap logical volumes are used, since unfortunately LVM snapshots do not exclude swapfile changes.
(Quotes are from a 2016 blog post by Dimitri John Ledkov who was employed by Canonical at the time of the entries were written)
Second question: somehow yes, you can install your system using LVM, remove the swap logical volume, add its size to other volumes like root (or any other place you want) and then create a new swapfile. You can also do the reverse - remove the swapfile, decrease the size of the FS and volume it was in and add a new swap partition.
However converting the basic installation to LVM is not possible unless you do tricky stuff.
lvreduce
to decease your swap partition's size. now the freed up space is available in your volume group and you can uselvextend
to add it to other partitions,/
,/home
or whatever. – Ravexina Jul 03 '17 at 20:43