It's complex and different for everyone, but leather is an expression of masculinity and sexual power. Think drag, but in reverse.
It had its origins in motorcycle garb after WW2, when men who had realized their homosexuality in the military moved to big cities of NY, SF and Chicago. They started a network of motorcycle clubs and took the bars in downtown waterfront areas that had been hangouts for soldiers and sailors and turned them into gay bars. But not piano bars or cocktail lounges, they created gay bars with hyper masculine decor and dress codes. After the Marlon Brando movie The Wild One opened, the look became more widespread.
There's also something transgressive about leather, and it implies an anything-goes attitude toward sexual practices. So there's no judgment in the "leather community" about who you are or what you look like or what you like to do. (Except, of course, for sweaters. NEVER wear sweaters.)
In the 1980s, when the AIDS epidemic started decimating the gay community, the leather bars were among those in the forefront of organizing, educating and fund raising, along with the lesbian community and the drag community. They visited the sick, buried the dead, grieved and mourned, and became activists.
Nowadays, IML is not just a leather convention and contest, it's also a 3-day circuit party, attended by thousands, including hundreds of younger gay men who know nothing and care nothing about leather or a community. For them, it's just another chance to get drunk or high and dance all night and have a lot of sex--except at IML weekend, they wear all black instead of all white, and they get to show off their buff gym bodies in leather and vinyl and pretend to be bad-ass. There's room for them too, like the boys who go to Gay Disney for the circuit parties and never set foot in the Magic Kingdom.
But, mostly, leather just feels sexy ;-}