Gotcha's literal meaning is "got you".
Similar to "The joke is on you" most of the time used in the context of basically saying you've made yourself look embarrassing or stupid and they are calling you out on it.
can be used as a way of telling someone you fooled them.
"You thought you really had luck on your side ? well here's the gotcha im one step ahead of luck"