XP is awarded for playing in a match. You will be awarded a little bit for losing but more for winning and you will be awarded more XP as you progress through the tours.
5000XP is not a lot and will most likely be achieved naturally
however playing against yourself on another device like a phone or tablet makes this even easier