Why would a GOP candidate running against Trump offer to write Trump's amicus brief?

Ramaswamy offered to do this. Are these other candidates just hanging around because they know Trump will win, and they hope to beg for some role in the administration? Only a couple of candidates are actually going after Trump. WTF is going on here?

https://www.politico.com/news/2023/08/15/trump-reaction-political-opponents-indictment-00111221

Why would a GOP candidate running against Trump offer to write Trump's amicus brief?
Post Opinion