These, from among "certain disciples," who did not even know that there is a Holy Spirit, differed greatly from the other disciples, because from the words "that they should believe in Him who was coming after him" it is evident that they did not believe in Christ either. He did not say that the baptism of John was nothing, but that it was incomplete. How then, being in Ephesus, did they receive the baptism of John? Perhaps they were traveling to Jerusalem at that time and returned from there without even receiving information about Christ. He does not say to them, "Do you believe in Jesus?" B...ut what does he say? "Did you receive the Holy Spirit when you believed?" Paul knew that they did not have the Holy Spirit, but he had the desire to speak in such a way that, having learned what they were lacking, they themselves would request it.
Source: Commentary on Acts