Jesus had given His disciples authority and power over demons in verse Luk 9:1. Yet here was a demon they couldn't cast out. Was this because their power had "run out"? No, for the gifts and callings of God are without repentance (Rom 11:29). That is, He never takes them back. But even though the gifts of God remain in place, their effectiveness is not automatic. This is where people so easily err. God uses them in a counseling, teaching, evangelistic or hospitality ministry, and they think, That's my gift. And it is. But when it starts losing its effectiveness, they wonder why.
"This kind does not go out except by prayer and fasting," Jesus said. In other words, "The authority is given, the power is present, but it won't operate without your participating in prayer and fasting." Therefore, although you might have been one of the most gifted witnesses in the whole country, you're ineffective today if you have not been maintaining that gift by prayer and fasting, by spending time in the presence of God.