Because the mammals usually take a single breath at the surface, and then descend.
In contrast, SCUBA divers are usually breathing compressed air while at depth, from their self-contained underwater breathing apparatus.
These divers will have lungs full of gas at several atmospheres of pressure. This will diffuse into their blood and then into more solid parts of their body. When they ascend, the stored gas diffuses out, causing bubbles, and thus 'the bends'.
When free-diving, the lungs are full of air at one atmosphere of pressure, leading to very different gas absorption dynamics.
Humans who free-dive (i.e. no scuba gear, just hold your breath) "don't get the bends" despite descending to depths well past the recreational scuba levels.
The caveat is that mammals can and do get the bends from free-diving (humans included in the mammals group) if they make multiple dives to depth with insufficient surface intervals. Because when you get technical about it, the air in the lungs does get compressed at depth, leading to the same absorption/release process as SCUBA divers face. However, the volumes of gas are much less (one breath vs many), thus the total amount absorbed/released is much less.