50 is the number of actual close votes you can cast: this includes not only those cast from making "Close" reviews in the review queue, but also those you cast externally outside the review UI.
40 is the number of close reviews you can make per day: this includes all review outcomes, including both "Close" and "Leave Open", but does not include close votes you cast outside the review UI.
On most sites, the two above numbers are 24 and (usually) 20, respectively, but on Stack Overflow, the daily close vote allowance is set to 50, and the size of the queue is above a threshold, giving users the ability to make 40 reviews instead of the usual 20.
The two numbers are different because they represent two different things.