Only two ways, really: someone gifts you one, or you win one in a contest. Either way the membership has been paid for by somebody, so it is not free to the site.
Be sceptical of anything else advertised as free premium. "Free premium generator" pages are a long-running scam category, built to harvest passwords or push surveys and downloads. Note also that deviantART retired the old Premium Membership name in favour of Core, so older guides describe a tier that no longer exists under that label.