It's sarcastic. It emphasizes the speaker's true meaning by expressing the opposite idea. For example:
A: I wonder if the boss will let us have Friday afternoon off.
B. Fat chance!
In other words, speaker B believes there is very little chance (or a slim chance) of that happening. Speaker B is being sarcastic by saying the opposite.
Student or Learner