I wouldn’t expect these to return the same values, since TOPN and RANKX are doing very different things. In your first measure, TOPN is returning a one row table (or multiple rows if there are ties based on the specified criterion) with the highest rig count for that customer. On the other hand, RANKX is returning the rank of each customer across all customers based on total rig count.
What further confounds the comparison is in the first measure, customer name is subject to the filtering from all the slicers related via the data model. However in the second measure you are removing the filters from customer name via the ALL statement. I think what you may want in that measure is ALLSELECTED, rather than ALL. However diagnosing DAX without seeing the data model or the data is always a little dicey.