Free companion ticket has no refund value, does not accrue frequent flyer mileage, is not eligible for an upgrade and is subject to all applicable government fees, taxes and surcharges.
Passenger and companion tickets must be booked in W class of service.
I would say that the free ticket earns miles since its actually booked in W.