A compact course is actually a golf course with short holes. The main purpose of a compact course is to exercise your short strokes, but they are also perfect if you have limited time.
If a golfclub has more than 4 (short) holes we depict it as a 'compact course. If it is less than that you can hardly call it a course. Then these are merely a few holes where you can practise.