It was a bold move by Dooku, to test Obi-Wan's reaction. He knew he was trained under a radical Jedi - Qui-Gon - who was also Dooku's padawan. To see if OB1 had any radical streak in him, see if he could be willing to join his side, and maybe be a Sith convert? The details of how Dooku changed to the dark side are still unknown.
starwars Like all people working for palpatine/ sidious they were all puppets for his master plan in taking over everything and getting revenge for the sith on the jedi and ever anakin joined the ranks of the order he was like " I think i'll get rid of dooku now thatI'm going to get anakin to the dark side" which he managed to do from anakin killing dooku.
dooku had no intention of being the main sith or turning obi wan to the dark side, he was just trying to make himself look like he trying to fight the sith to try to fool obi wan. he only told them about sidious because he couldn't help himself in revealing that there was a main sith lord and he wanted to show off his powers in the end of ep2, to kinda show there was another main sith much more powerful. The jedi search all the politics to see if anyone is found but no one is even found supicious so the jedi think he's lyeing. they intercept a message that no doubt tells them that sidious is real but they still dont think he's controlling the senate. This is all in the book the Labyrinth of Evil to prove it