It is also only 2140 if you believe that the market cap can double with the halvening schedule every four years. I see the upper bound (around gold market cap) in 3-5 halving cycles. After that the majority of the security has to be financed by tx fees
Miners will get an exponentially decreasing amount of block rewards until 2140, but even 20 years from now the (BTC-denominated) size of the block rewards will be substantially lower than they are today.
The price matters because they are BTC-denominated. If the price of Bitcoin doubles every 4 years, the security of the system can stay at parity with what it is today (assuming the real value of transaction fees stays roughly the same).