Why couldn’t the ancient Greeks fight off Roman soldiers even though they defeated the Persian empire years before?

To borrow and slightly modify a famous quote from Napoleon “The Greeks’showed themselves worthy of victory, but the Romans showed themselves worthy of being invincible.”

The Romans were the most powerful fighting force the world had ever seen. There was simply no stopping their expansion.