At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
...because...the assumption for Producer Theory is that firms have the main goal to maximise profits and not market position. Since profits are the revenue minus the total costs, then it would be logical to minimise costs to maximise profits.
You need to remember that any firm is inteterested in getting more revenue. As you possibly know profit=price*quantity - cost f(quantity). if you look at this simple equation you can easily figure out the answer of your question. if the firm minimize the cost, then this equation says it will increase its profit. Equation says as well if the firm sell at higher price the profit will increase (as far the quantity is the same).
In short minimizing the cost or maximizing the profit is making the firm better.
Important note, profit maximizing firm is a cost minimizing, but cost minimizing firm not necessarly to be profit maximizing