I'm well aware that there is no practical way to use grease to lubricate the pistons in an engine. But, oil works just fine.
Oil is contained in the engine. It doesn't leave the engine unless there is a leak, which means something is broke. In a firearm, there is little, if anything to prevent oil from getting away from the part(s) it is intended to lubricate.