Only specific PS3 models can play PS2 games. Backward compatibility was removed in later hardware revisions.
Check the model number on the back of the console (starts with "CECH"). If the number after CECH- is less than 2000 (e.g., CECHA01, CECHC04), it has hardware backward compatibility.