tl;dr No general rule. Competition for remote jobs higher than on-site jobs.
Remote rules vary by company and job. Some jobs advertise remote ok. Some you can ask to do remotely. Some companies have hard rules for working on-site all of the time or a few days a week.
More senior people and those with in-demand skills have more leverage. Freelancers often work remotely.