When you are hidden from a creature and miss it with a ranged weapon attack, making the attack doesn't reveal your position.