A tip, in the classical sense, is expected to be something that the person you're tipping gets to keep in addition to their wage.
A minimum wage isn't supposed to guarantee a minimum level of welfare (that's what direct-transfer welfare programs are for); it's supposed to guarantee a minimum proportion between labor-in and compensation-out.
In fact, think of the alternative case: it would piss most people off to realize that giving $20 to a person on welfare, means that—if the recipient is honest—the government will subtract that same amount from their welfare check for that month.
That's the way that system is supposed to work, and people still find it unjust. So why don't they find it unjust when it's a system (minimum wage) that's not supposed to keep people "at level", but rather to increase their compensation as they provide more labor?
One of my biggest hesitations with tipping in places where it is unexpected, like a muffin shop in the OP, is whether the tip goes straight to the employee whose performance I tipped for, split among all staff indiscriminately, or more sinister straight to the employer.
In practice this is unlikely, but it’s still the legal requirement.