It's unrelated to either other than sharing the gig economy model. It's just another part of their Fulfillment Operations that relies on individuals with their own vehicles instead of a fleet.
Anyway: Amazon Flex drivers actually did handle delivery for Amazon Restaurants, which was a direct competitor to Uber Eats, DoorDash, GrubHub, Caviar, etc.