Of course it is not a corporate rule. An individual property may certainly prohibit guests and may also impose a fee if it wishes.
Not uncommon in some locations for properties to simply prohibit individuals not registered onto guest room floors and for some to check room keys/ID's at a podium at the elevator bank. Those places typically don't levy a fee, but do require the guest to register and if that changes the rate, that is what it does.