There's a difference between buying the ticket for gate access and buying the ticket for lounge access. The OP did the former.
The latter is reprehensible. The former isn't so bad (but I'm not saying it is good). After all, the airline did make money off the OP from Priority Pass.