How did you find out the 2nd query run faster than the first one?

The best way is: Run Explain plan and check the total cost.
The query that has least cost is better.