Now, look at their role here: if this takes off, they'll have data on what merchants are selling, for how much, and to whom. These are items that Amazon wouldn't normally get sales data on because people choose local vendors instead.
If Amazon wanted to start pushing more into local markets (or different kinds of products), they can make a fortune off this data, and that's why they can afford to undercut companies like Square. It's a long term play.