Wait, maybe its just me being a boomer, but how does a "trap" counts as a swear word in the first place?!
The word originates from the fact that you found another person so atractive and sexy, that you decided to hit on her/him, only to discover that he/she is not a gender that you assumed in the first place. Hence, "you got caught being gay" and "lols". If anything, trap is suppose to be a compliment to the people who actually crossdress that convincingly and are good looking enough to pull it off.