There were numerous compilers for the 6502.
However, the 6502 was a challenge to implement high-level languages on, IF you also wanted speed and small code size. But since the 6502s were slow compared to modern chips, and could only address 64KiB directly, you typically also wanted speed and small size.
I posted some links to some approaches here: https://dwheeler.com/6502/
Atalan and Plasma look nice.