They are not the same. Greatness has nothing to do with being famous.
The goal for getting either of one or both is acceptable but it’s not obvious to reach those. Being great has its own path and so does the fame.
They are never the same. Greatness has its own genius and ingredient and famous has its own. They should not be misunderstood.