The pressure changes for the bends are not fast enough in air as opposed to water. In water the atmospheric pressure in creases by one for every 33 feet of water. Not nearly as fast in air. The second major factor is with diving the pressure goes up as as you go down, which allows more nitrogen to dissolve in your blood. When you come back to normal pressure the decreased pressure at the surface allows nitrogen to bubble out causing the problems. In a plane as you descend the pressure goes up, so the oxygen would be forced back into the blood so no issues.
In theory, if you went very high, very fast it could happen at maximum altitude, but it should not be an issue back at the surface. Coming down would be similar to the treatment for the bends which is a pressure chamber.