Children need to play and it needs to be fun. If it's not fun they will lose interest. Playing is important at any age. How many of us would play the recreational sports we do (golf, tennis, etc.) if every time we swung the club or racquet someone was correcting our technique.
When your child is not at practice let him/her dictate how to spend time playing (as long as it’s safe). I asked my son why he plays soccer at recess everyday since it's a sport he does not play in a formal league. His response was, "Because it's fun." At recess there are no coaches, no parents, no officials and no pressure. Kids can make up the teams and the rules to make sure they have fun. The same should happen at home.
If you're wondering why all of a sudden your child does not want to play basketball with you, think back to the last few times you were outside playing together. Did you spend more time coaching than just being a parent? Did you dictate what the two of you would play and how it should be played? If so, you may have taken the fun out of your child's play.
Next time you go outside to play with your child, try to make an honest effort to let your child decide what you'll play and what the rules will be. Don't correct, explain or demonstrate unless you're asked. You might be surprised how much fun you'll have together.